1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-14 02:24:16 +02:00

Threading Fix

This commit is contained in:
snowleo
2013-04-14 04:44:16 +03:00
parent 843a0297a1
commit 881ea12916

View File

@@ -41,7 +41,7 @@ public class Backup implements Runnable
startTask();
}
public void cleanup()
public synchronized void stopTask()
{
running = false;
if (taskId != -1)
@@ -141,7 +141,7 @@ public class Backup implements Runnable
server.dispatchCommand(cs, "save-on");
if (server.getOnlinePlayers().length == 0)
{
cleanup();
stopTask();
}
active = false;
LOGGER.log(Level.INFO, _("backupFinished"));