mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-05-10 19:17:01 +00:00
catch OOM in the OOM listener
This commit is contained in:
@@ -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) {}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user