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

@ -38,11 +38,18 @@ trait BootableRemoteActorService extends Bootable with Logging {
abstract override def onUnload = {
super.onUnload
if (remoteServerThread.isAlive) {
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")
}
}