diff options
author | snowleo <schneeleo@gmail.com> | 2011-08-21 21:27:22 +0200 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2011-08-21 21:27:22 +0200 |
commit | af248a1d2eda2bf2a3dc24a8b7cf7af8fb21e596 (patch) | |
tree | d7438202c0e725f01de8f4090756bceffa265975 /EssentialsProtect/src | |
parent | 040e2bee86c65002a9f3c1bea67b14fbb2eb5b5f (diff) | |
download | Essentials-af248a1d2eda2bf2a3dc24a8b7cf7af8fb21e596.tar Essentials-af248a1d2eda2bf2a3dc24a8b7cf7af8fb21e596.tar.gz Essentials-af248a1d2eda2bf2a3dc24a8b7cf7af8fb21e596.tar.lz Essentials-af248a1d2eda2bf2a3dc24a8b7cf7af8fb21e596.tar.xz Essentials-af248a1d2eda2bf2a3dc24a8b7cf7af8fb21e596.zip |
Wait 1 second after deactivation of protect to allow the database to close.
Diffstat (limited to 'EssentialsProtect/src')
-rw-r--r-- | EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtect.java | 8 |
1 files changed, 8 insertions, 0 deletions
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() |