Added clean automatic shutdown of RemoteClient, based on reference counting + fixed bug in shutdown of RemoteClient
This commit is contained in:
parent
1355dd2411
commit
675101cc82
7 changed files with 108 additions and 34 deletions
|
|
@ -180,8 +180,7 @@ class RemoteServer extends Logging {
|
|||
def shutdown = {
|
||||
RemoteServer.unregister(hostname, port)
|
||||
openChannels.disconnect
|
||||
openChannels.unbind
|
||||
openChannels.close.awaitUninterruptibly(1000)
|
||||
openChannels.close.awaitUninterruptibly
|
||||
bootstrap.releaseExternalResources
|
||||
Cluster.deregisterLocalNode(hostname, port)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue