Clear list after handling uncaught exceptions
See gh-4423
This commit is contained in:
parent
c595d89717
commit
8c0decac94
|
|
@ -44,8 +44,13 @@ class LoggedExceptionHandler implements UncaughtExceptionHandler {
|
|||
|
||||
@Override
|
||||
public void uncaughtException(Thread thread, Throwable ex) {
|
||||
if (!isRegistered(ex) && this.parent != null) {
|
||||
this.parent.uncaughtException(thread, ex);
|
||||
try {
|
||||
if (!isRegistered(ex) && this.parent != null) {
|
||||
this.parent.uncaughtException(thread, ex);
|
||||
}
|
||||
}
|
||||
finally {
|
||||
this.exceptions.clear();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue