shutdown (and unbind) Remote Server even if the remoteServerThread is not alive

This commit is contained in:
Eckart Hertzler 2010-03-03 20:06:06 +01:00
parent d46504f72d
commit 259b6c21bf

View file

@ -35,14 +35,21 @@ trait BootableRemoteActorService extends Bootable with Logging {
super.onLoad
}
abstract override def onUnload = {
super.onUnload
if (remoteServerThread.isAlive) {
log.info("Shutting down Remote Actors Service")
RemoteNode.shutdown
remoteServerThread.join(1000)
}
super.onUnload
log.info("Shutting down Remote Actors Service")
RemoteNode.shutdown
if (remoteServerThread.isAlive)
remoteServerThread.join(1000)
log.info("Shutting down Cluster")
Cluster.shutdown
log.info("Remote Actors Service has been shut down")
}
}