Adding null-checks in shutdown of ActiveRemoteClient
This commit is contained in:
parent
442d597b81
commit
f029b8dc91
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue