Added clean automatic shutdown of RemoteClient, based on reference counting + fixed bug in shutdown of RemoteClient

This commit is contained in:
Jonas Bonér 2010-02-15 16:21:26 +01:00
parent 8829ceacbb
commit c0bbcc70d2
7 changed files with 108 additions and 34 deletions

View file

@ -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)
}