diff options
author | snowleo <schneeleo@gmail.com> | 2011-08-21 21:44:58 +0200 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2011-08-21 21:44:58 +0200 |
commit | 256c9633706e7a8d087e21926871437320895057 (patch) | |
tree | b9daece60f7f7576d39348365b78877d77137287 /EssentialsProtect | |
parent | 7b8c2a4575a49186ee5002e3a6723bf97cab879f (diff) | |
parent | d818f705adc30b5f515e49f88e23e870322f3eb3 (diff) | |
download | Essentials-stable-2.5.7.tar Essentials-stable-2.5.7.tar.gz Essentials-stable-2.5.7.tar.lz Essentials-stable-2.5.7.tar.xz Essentials-stable-2.5.7.zip |
Merge branch 'master' into releasestable-2.5.7
Diffstat (limited to 'EssentialsProtect')
-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() |