Browse Source

Correct format and comment

T00thpick1 12 years ago
parent
commit
69dd5769e4
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/main/java/com/gmail/nossr50/mcMMO.java

+ 4 - 2
src/main/java/com/gmail/nossr50/mcMMO.java

@@ -176,10 +176,12 @@ public class mcMMO extends JavaPlugin {
         catch (NullPointerException e) {}
         catch (NullPointerException e) {}
 
 
         getServer().getScheduler().cancelTasks(this); // This removes our tasks
         getServer().getScheduler().cancelTasks(this); // This removes our tasks
+
         if (Config.getInstance().getUseMySQL()) {
         if (Config.getInstance().getUseMySQL()) {
-            queueManager.disable();
-            queueManager = null;
+            queueManager.disable(); // Disable and stop queue thread
+            queueManager = null; // null static variable
         }
         }
+
         HandlerList.unregisterAll(this); // Cancel event registrations
         HandlerList.unregisterAll(this); // Cancel event registrations
 
 
         if (Config.getInstance().getBackupsEnabled()) {
         if (Config.getInstance().getBackupsEnabled()) {