Do not show warnings if core is already shutting down

This commit is contained in:
Zlatin Balevsky
2019-10-23 06:15:34 +01:00
parent f0b5361d7b
commit 4e6e1b6f5b

View File

@@ -499,6 +499,8 @@ class MainFrameModel {
}
void onRouterDisconnectedEvent(RouterDisconnectedEvent e) {
if (core.getShutdown().get())
return
runInsideUIAsync {
JOptionPane.showMessageDialog(null, "MuWire lost connection to the I2P router and will now exit.",
"Connection to I2P router lost", JOptionPane.WARNING_MESSAGE)