mirror of
https://github.com/GeorgH93/Minepacks.git
synced 2025-01-07 19:28:11 +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;
|
inventoryClearCommand = null;
|
||||||
}
|
}
|
||||||
if(collector != null) collector.close();
|
if(collector != null) collector.close();
|
||||||
commandManager.close();
|
if(commandManager != null) commandManager.close();
|
||||||
if(collector != null) collector.cancel();
|
if(collector != null) collector.cancel();
|
||||||
if(database != null) database.close(); // Close the DB connection, we won't need them any longer
|
if(database != null) database.close(); // Close the DB connection, we won't need them any longer
|
||||||
HandlerList.unregisterAll(this); // Stop the listeners
|
HandlerList.unregisterAll(this); // Stop the listeners
|
||||||
|
Loading…
Reference in New Issue
Block a user