Remove crash handler when handling first crash. Fixes bug #76.

This commit is contained in:
akwizgran
2015-04-07 19:07:57 +01:00
parent e4a79b8125
commit f2d3e4cb81

View File

@@ -26,6 +26,8 @@ class CrashHandler implements UncaughtExceptionHandler {
public void uncaughtException(Thread thread, Throwable throwable) {
LOG.log(WARNING, "Uncaught exception", throwable);
// Don't handle more than one exception
Thread.setDefaultUncaughtExceptionHandler(delegate);
// Get the stack trace
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);