Avoiding to releaseExternalResources on the ExecutionHandler
This commit is contained in:
parent
602a036194
commit
442d597b81
1 changed files with 13 additions and 6 deletions
|
|
@ -212,12 +212,19 @@ class ActiveRemoteClient private[akka] (
|
|||
log.debug("Shutting down remote client [{}]", name)
|
||||
|
||||
notifyListeners(RemoteClientShutdown(remoteSupport, remoteAddress))
|
||||
connection.getChannel.close()
|
||||
connection = null
|
||||
executionHandler.releaseExternalResources()
|
||||
executionHandler = null
|
||||
bootstrap.releaseExternalResources()
|
||||
bootstrap = null
|
||||
try {
|
||||
if (connection.getChannel ne null)
|
||||
connection.getChannel.close()
|
||||
} finally {
|
||||
connection = null
|
||||
executionHandler = null
|
||||
//Do not do this: executionHandler.releaseExternalResources(), since it's shutting down the shared threadpool
|
||||
try {
|
||||
bootstrap.releaseExternalResources()
|
||||
} finally {
|
||||
bootstrap = null
|
||||
}
|
||||
}
|
||||
|
||||
log.debug("[{}] has been shut down", name)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue