Resolved race condition in Reaction.scala
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@11098 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
parent
f268607374
commit
487396de68
|
@ -67,13 +67,16 @@ private[actors] class Reaction(a: Actor,
|
|||
}
|
||||
case t: Throwable => {
|
||||
// links
|
||||
if (!a.links.isEmpty) {
|
||||
a.exitLinked(t)
|
||||
a.synchronized {
|
||||
if (!a.links.isEmpty)
|
||||
a.exitLinked(t)
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!a.sessions.isEmpty)
|
||||
a.sessions = a.sessions.tail
|
||||
a.synchronized {
|
||||
if (!a.sessions.isEmpty)
|
||||
a.sessions = a.sessions.tail
|
||||
}
|
||||
Actor.tl.set(saved)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue