From 89edb00c058ecab9fa290b47b71c11342d9b82b6 Mon Sep 17 00:00:00 2001 From: md_5 Date: Thu, 5 Sep 2013 19:52:41 +1000 Subject: [PATCH] Properly cancel tasks! --- .../src/main/java/net/md_5/bungee/scheduler/BungeeScheduler.java | 1 + 1 file changed, 1 insertion(+) diff --git a/proxy/src/main/java/net/md_5/bungee/scheduler/BungeeScheduler.java b/proxy/src/main/java/net/md_5/bungee/scheduler/BungeeScheduler.java index d6a849f5..53048d2d 100644 --- a/proxy/src/main/java/net/md_5/bungee/scheduler/BungeeScheduler.java +++ b/proxy/src/main/java/net/md_5/bungee/scheduler/BungeeScheduler.java @@ -35,6 +35,7 @@ public class BungeeScheduler implements TaskScheduler public void cancel(int id) { BungeeTask task = tasks.remove( id ); + task.cancel(); tasksByPlugin.values().remove( task ); }