mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-18 05:39:53 +01:00
Remove crash handler when handling first crash. Fixes bug #76.
This commit is contained in:
@@ -26,6 +26,8 @@ class CrashHandler implements UncaughtExceptionHandler {
|
|||||||
|
|
||||||
public void uncaughtException(Thread thread, Throwable throwable) {
|
public void uncaughtException(Thread thread, Throwable throwable) {
|
||||||
LOG.log(WARNING, "Uncaught exception", throwable);
|
LOG.log(WARNING, "Uncaught exception", throwable);
|
||||||
|
// Don't handle more than one exception
|
||||||
|
Thread.setDefaultUncaughtExceptionHandler(delegate);
|
||||||
// Get the stack trace
|
// Get the stack trace
|
||||||
StringWriter sw = new StringWriter();
|
StringWriter sw = new StringWriter();
|
||||||
PrintWriter pw = new PrintWriter(sw);
|
PrintWriter pw = new PrintWriter(sw);
|
||||||
|
|||||||
Reference in New Issue
Block a user