Fix for NPE in closing datagram channel.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5896 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -336,9 +336,12 @@ public class BlockingCommunicator extends Communicator
|
||||
{
|
||||
// clear out our writer reference
|
||||
_datagramWriter = null;
|
||||
log.debug("Datagram writer thread exited.");
|
||||
|
||||
closeDatagramChannel();
|
||||
if (_datagramReader == null) {
|
||||
closeDatagramChannel();
|
||||
}
|
||||
|
||||
log.debug("Datagram writer thread exited.");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user