Skip to content

Commit

Permalink
fix #65 - consistently synchronize the write to NGSession.done
Browse files Browse the repository at this point in the history
  • Loading branch information
yilongli authored and Dwight Guth committed Sep 15, 2015
1 parent 0980adf commit 5e4534c
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -130,8 +130,8 @@ public class NGSession extends Thread {
* Shuts down this NGSession gracefully
*/
void shutdown() {
done = true;
synchronized (lock) {
done = true;
nextSocket = null;
lock.notifyAll();
}
Expand Down

0 comments on commit 5e4534c

Please sign in to comment.