mirror of
https://github.com/apache/activemq-artemis.git
synced 2025-02-10 12:05:45 +00:00
I just did some static analysis of this code, and I believe it would be better to first add to the list before setting the cancel task. Reason for that is in case the Runnable is dequeued between the add in the deQueue and setting the cancel task. Possibility is remote but my OCD wouldn't let me ignore this small possibility.