Add back unregisters

This commit is contained in:
Owain van Brakel
2019-07-14 03:59:25 +02:00
parent fc9e700c7c
commit 5124890d89
3 changed files with 3 additions and 3 deletions

View File

@@ -180,7 +180,7 @@ public class ChatboxPanelManager
log.warn("Exception closing {}", currentInput.getClass(), e); log.warn("Exception closing {}", currentInput.getClass(), e);
} }
// eventBus.unregister(currentInput); eventBus.unregister(currentInput);
if (currentInput instanceof KeyListener) if (currentInput instanceof KeyListener)
{ {
keyManager.unregisterKeyListener((KeyListener) currentInput); keyManager.unregisterKeyListener((KeyListener) currentInput);

View File

@@ -392,7 +392,7 @@ public class PluginManager
try try
{ {
unschedule(plugin); unschedule(plugin);
// eventBus.unregister(plugin); eventBus.unregister(plugin);
// plugins always stop in the event thread // plugins always stop in the event thread
SwingUtilities.invokeAndWait(() -> SwingUtilities.invokeAndWait(() ->

View File

@@ -192,7 +192,7 @@ public class GameEventManager
}); });
}); });
// eventBus.unregister(subscriber); eventBus.unregister(subscriber);
}); });
} }
} }