forked from I2P_Developers/i2p.i2p
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