2005-04-01 Jeroen Frijters <jeroen@frijters.net>
* java/util/Timer.java (run): Stop the queue if a task throws an exception. From-SVN: r97411
This commit is contained in:
parent
77c10b31ec
commit
f68d5b0d04
2 changed files with 8 additions and 2 deletions
|
@ -350,8 +350,9 @@ public class Timer
|
|||
throw death;
|
||||
}
|
||||
catch (Throwable t)
|
||||
{
|
||||
/* ignore all errors */
|
||||
{
|
||||
// If an exception escapes, the Timer becomes invalid.
|
||||
queue.stop();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue