diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/actors/scala/actors/Actor.scala | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/actors/scala/actors/Actor.scala b/src/actors/scala/actors/Actor.scala index 583a6bae2e..7db3b01a4e 100644 --- a/src/actors/scala/actors/Actor.scala +++ b/src/actors/scala/actors/Actor.scala @@ -675,8 +675,12 @@ trait Actor extends OutputChannel[Any] { * Starts this actor. */ def start(): Actor = synchronized { - // reset various flags - trapExit = false + // Reset various flags. + // + // Note that we do *not* reset `trapExit`. The reason is that + // users should be able to set the field in the constructor + // and before `act` is called. + exitReason = 'normal exiting = false shouldExit = false |