Do not show warnings if core is already shutting down

pull/24/head
Zlatin Balevsky 2019-10-23 06:15:34 +01:00
parent f0b5361d7b
commit 4e6e1b6f5b
1 changed files with 2 additions and 0 deletions

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)