catch OOM in the OOM listener

This commit is contained in:
zzz
2015-04-28 22:24:05 +00:00
parent f16927f316
commit 64121b1e92

View File

@@ -58,6 +58,8 @@ public class OOMListener implements I2PThread.OOMEventListener {
try {
_context.router().eventLog().addEvent(EventLog.OOM);
} catch (OutOfMemoryError oome) {}
_context.router().shutdown(Router.EXIT_OOM);
try {
_context.router().shutdown(Router.EXIT_OOM);
} catch (OutOfMemoryError oome) {}
}
}