feat: cancel all task when disable engine

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2020-04-03 11:36:06 +08:00
parent 24fe3b9026
commit e74cfda86b
6 changed files with 26 additions and 5 deletions

View File

@ -16,6 +16,9 @@ export class BungeeTaskManager implements task.TaskManager {
callSyncMethod(func: Function): any {
return func();
}
disable() {
this.pluginInstance.getProxy().getScheduler().cancel(this.pluginInstance)
}
}
export class BungeeTask extends task.Task {