mirror of
https://github.com/GeorgH93/Minepacks.git
synced 2025-01-06 19:18:07 +01:00
Fix error on shutdown if command manager was not initialized
This commit is contained in:
parent
ae52896d78
commit
7aec09de1b
@ -243,7 +243,7 @@ private void unload()
|
||||
inventoryClearCommand = null;
|
||||
}
|
||||
if(collector != null) collector.close();
|
||||
commandManager.close();
|
||||
if(commandManager != null) commandManager.close();
|
||||
if(collector != null) collector.cancel();
|
||||
if(database != null) database.close(); // Close the DB connection, we won't need them any longer
|
||||
HandlerList.unregisterAll(this); // Stop the listeners
|
||||
|
Loading…
Reference in New Issue
Block a user