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:
@@ -949,7 +949,8 @@ public class BlockingCommunicator extends Communicator
|
||||
if (_selector != null) {
|
||||
_selector.wakeup();
|
||||
}
|
||||
closeDatagramChannel();
|
||||
// interrupt reading the current datagram
|
||||
interrupt();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user