Fixed bug calling notifyAll instead of signalAll

This commit is contained in:
Abraham Kiggundu
2015-01-07 00:47:27 +03:00
parent be2a92d6c2
commit 8d25840a1d

View File

@@ -101,7 +101,7 @@ class Sender {
// Don't accept an unreasonably large window size
windowSize = Math.min(a.getWindowSize(), MAX_WINDOW_SIZE);
// If space has become available, notify any waiting writers
if(windowSize > oldWindowSize || foundIndex != -1) notifyAll();
if(windowSize > oldWindowSize || foundIndex != -1) sendWindowAvailable.signalAll();
}
finally{
synchLock.unlock();