mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user