mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-24 11:15:21 +01:00
Handle new CancellationExceptions being thrown by Bukkit Scheduler
This commit is contained in:
parent
c2d97ba3d5
commit
1603015631
@ -10,6 +10,7 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.concurrent.Callable;
|
||||
import java.util.concurrent.CancellationException;
|
||||
import java.util.concurrent.Future;
|
||||
|
||||
import org.bukkit.ChatColor;
|
||||
@ -411,6 +412,8 @@ public class DynmapPlugin extends JavaPlugin implements DynmapAPI {
|
||||
Boolean delay;
|
||||
try {
|
||||
delay = f.get();
|
||||
} catch (CancellationException cx) {
|
||||
return null;
|
||||
} catch (Exception ix) {
|
||||
Log.severe(ix);
|
||||
return null;
|
||||
|
Loading…
Reference in New Issue
Block a user