Allow timeout listeners to cancel expiration.

This commit is contained in:
Kristian S. Stangeland 2012-11-21 03:40:31 +01:00
parent 95fe40aef3
commit 4b19f8498b

View File

@ -176,7 +176,7 @@ abstract class PacketSendingQueue {
hasExpired = marker.hasExpired();
// Could happen due to the timeout listeners
if (!marker.isProcessed()) {
if (!marker.isProcessed() && !hasExpired) {
return false;
}
}