Need to catch exceptions that could be thrown by alarm cause failure to do so may lead to alarm thread termination and cancelling all unexecuted requests.

This commit is contained in:
Maxim Shafirov
2005-02-10 20:09:39 +03:00
parent 67819a66c9
commit 2c0965609d
+7 -2
View File
@@ -84,7 +84,7 @@ public class Alarm {
try {
request.run();
}
catch (Exception e) {
catch (Throwable e) {
LOG.error(e);
}
}
@@ -223,7 +223,12 @@ public class Alarm {
}
}
if (!isCanceled) {
request.run();
try {
request.run();
}
catch (Throwable e) {
LOG.error(e);
}
}
}
};