Or maybe just interrupt the reader thread.

This seems to work. I'm going with this unless I hear otherwise.
This commit is contained in:
Ray J. Greenwell
2013-12-05 14:19:28 -08:00
parent cea4b3cfd8
commit 25cb866cc0
@@ -949,7 +949,8 @@ public class BlockingCommunicator extends Communicator
if (_selector != null) {
_selector.wakeup();
}
closeDatagramChannel();
// interrupt reading the current datagram
interrupt();
}
}