shutdown (and unbind) Remote Server even if the remoteServerThread is not alive
This commit is contained in:
parent
d46504f72d
commit
259b6c21bf
1 changed files with 14 additions and 7 deletions
|
|
@ -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")
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue