Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…570) Session.drainQueueToConnection checks sessionQueue.isEmpty(), and then uses sessionQueue.remove(). However, between the check and the remove, another thread can steal the last message, causing the remove() to throw an exception. Better to use sessionQueue.poll() with a null-check.
- Loading branch information