Fixed timer to be stopped onDisabled if it was started
This commit is contained in:
parent
c65da2f717
commit
72166607dc
1 changed files with 5 additions and 0 deletions
|
|
@ -130,6 +130,11 @@ public class DynmapPlugin extends JavaPlugin {
|
||||||
webServer.shutdown();
|
webServer.shutdown();
|
||||||
webServer = null;
|
webServer = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(timer != null) {
|
||||||
|
timer.cancel();
|
||||||
|
}
|
||||||
|
|
||||||
Debug.clearDebuggers();
|
Debug.clearDebuggers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue