I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 64121b1e authored by zzz's avatar zzz
Browse files

catch OOM in the OOM listener

parent f16927f3
No related branches found
No related tags found
No related merge requests found
......@@ -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) {}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment