diff options
author | Philipp Haller <hallerp@gmail.com> | 2008-03-13 13:40:21 +0000 |
---|---|---|
committer | Philipp Haller <hallerp@gmail.com> | 2008-03-13 13:40:21 +0000 |
commit | e9aec18ddf0292300c7bb039977f7192e5913a70 (patch) | |
tree | 38152b13c671ad6fed7e0cd7e71f2b9f381105d1 | |
parent | 87c7cde2aa7c03436b743192acac10a26ea96f62 (diff) | |
download | scala-e9aec18ddf0292300c7bb039977f7192e5913a70.tar.gz scala-e9aec18ddf0292300c7bb039977f7192e5913a70.tar.bz2 scala-e9aec18ddf0292300c7bb039977f7192e5913a70.zip |
Do not reset trapExit in Actor.start.
-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 |