Skip to content

fix: Fixed ConcurrentModificationException in cancelAll()#260

Open
greenbear26 wants to merge 2 commits intoFTCLib:devfrom
greenbear26:master
Open

fix: Fixed ConcurrentModificationException in cancelAll()#260
greenbear26 wants to merge 2 commits intoFTCLib:devfrom
greenbear26:master

Conversation

@greenbear26
Copy link
Copy Markdown

Pull Requests

Please note that we accept pull requests from anyone, but that does not mean it will be merged.

What kind of change does this PR introduce?

  • Fix

Did this PR introduce a breaking change?

  • No

Please make sure your PR satisfies the requirements of the contributing page

This PR is just fixing an issue when calling cancelAll() in the CommandScheduler. It was previously causing a ConcurrentModificationException when removing commands from m_scheduledCommands while looping through it. This new code fixes that.

On another note, the gradle version for this project is very outdated, and it should be under consideration to update it.

@greenbear26 greenbear26 changed the base branch from master to dev December 3, 2024 00:33
@Thorny128
Copy link
Copy Markdown

Yo someone should merge this PR in I need my cancelAll() to work

@BeepBot99
Copy link
Copy Markdown

FTCLib is not maintained anymore. Use SolversLib instead, a maintained fork of FTCLib.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants