Making ThreadBasedDispatcher Unbounded if no capacity specced and fix a possible mem leak in it

This commit is contained in:
Viktor Klang 2010-10-25 18:20:29 +02:00
parent b0001eafa9
commit f11d33953f
3 changed files with 24 additions and 12 deletions

View file

@ -618,7 +618,7 @@ class RemoteServerHandler(
log.info("Creating a new remote actor [%s:%s]", name, uuid)
val clazz = if (applicationLoader.isDefined) applicationLoader.get.loadClass(name)
else Class.forName(name)
val actorRef = Actor.actorOf(clazz.newInstance.asInstanceOf[Actor])
val actorRef = Actor.actorOf(clazz.asInstanceOf[Class[_ <: Actor]])
actorRef.uuid = uuidFrom(uuid.getHigh,uuid.getLow)
actorRef.id = id
actorRef.timeout = timeout