Adding null-checks in shutdown of ActiveRemoteClient

This commit is contained in:
Viktor Klang 2012-01-09 14:40:57 +01:00
parent 442d597b81
commit f029b8dc91

View file

@ -213,7 +213,7 @@ class ActiveRemoteClient private[akka] (
notifyListeners(RemoteClientShutdown(remoteSupport, remoteAddress))
try {
if (connection.getChannel ne null)
if ((connection ne null) && (connection.getChannel ne null))
connection.getChannel.close()
} finally {
connection = null