Remove unneeded unregisters
This commit is contained in:
@@ -389,7 +389,6 @@ public class PluginManager
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
unschedule(plugin);
|
unschedule(plugin);
|
||||||
eventBus.unregister(plugin);
|
|
||||||
|
|
||||||
// plugins always stop in the event thread
|
// plugins always stop in the event thread
|
||||||
SwingUtilities.invokeAndWait(() ->
|
SwingUtilities.invokeAndWait(() ->
|
||||||
|
|||||||
@@ -191,8 +191,6 @@ public class GameEventManager
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
eventBus.unregister(subscriber);
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user