Fixing mem leak in NettyRemoteSupport.unregister
This commit is contained in:
parent
d2c80a4b54
commit
0b1174fff9
1 changed files with 2 additions and 2 deletions
|
|
@ -702,7 +702,7 @@ trait NettyRemoteServerModule extends RemoteServerModule { self: RemoteModule
|
|||
def unregister(actorRef: ActorRef): Unit = guard withGuard {
|
||||
if (_isRunning.isOn) {
|
||||
actors.remove(actorRef.address, actorRef)
|
||||
actorsByUuid.remove(actorRef.uuid, actorRef)
|
||||
actorsByUuid.remove(actorRef.uuid.toString, actorRef)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -716,7 +716,7 @@ trait NettyRemoteServerModule extends RemoteServerModule { self: RemoteModule
|
|||
if (id.startsWith(UUID_PREFIX)) actorsByUuid.remove(id.substring(UUID_PREFIX.length))
|
||||
else {
|
||||
val actorRef = actors get id
|
||||
actorsByUuid.remove(actorRef.uuid, actorRef)
|
||||
actorsByUuid.remove(actorRef.uuid.toString, actorRef)
|
||||
actors.remove(id, actorRef)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue