Fixed timer to be stopped onDisabled if it was started

This commit is contained in:
Jason Booth 2011-02-17 09:45:32 -06:00
parent e1f2ca26d6
commit 77d9a88868
1 changed files with 5 additions and 0 deletions

View File

@ -130,6 +130,11 @@ public class DynmapPlugin extends JavaPlugin {
webServer.shutdown();
webServer = null;
}
if(timer != null) {
timer.cancel();
}
Debug.clearDebuggers();
}