From af248a1d2eda2bf2a3dc24a8b7cf7af8fb21e596 Mon Sep 17 00:00:00 2001 From: snowleo Date: Sun, 21 Aug 2011 21:27:22 +0200 Subject: Wait 1 second after deactivation of protect to allow the database to close. --- .../src/com/earth2me/essentials/protect/EssentialsProtect.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'EssentialsProtect/src/com') diff --git a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtect.java b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtect.java index bae792d06..fa1fadad6 100644 --- a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtect.java +++ b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtect.java @@ -190,6 +190,14 @@ public class EssentialsProtect extends JavaPlugin implements IConf, IProtect { storage.onPluginDeactivation(); } + // Sleep for a second to allow the database to close. + try + { + Thread.sleep(1000); + } + catch (InterruptedException ex) + { + } } public IEssentials getEssentials() -- cgit v1.2.3