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 | cdb7e3ccbe058bfb8a391b7751ca9fde5af5e1eb (patch) | |
tree | 573913c4e9cb41dcbd14b81e5585a4e1a52726ec /EssentialsProtect/src/com/earth2me/essentials | |
parent | ccbded514b66af81bd5bbde79ee01313f956dd6f (diff) | |
download | Essentials-cdb7e3ccbe058bfb8a391b7751ca9fde5af5e1eb.tar Essentials-cdb7e3ccbe058bfb8a391b7751ca9fde5af5e1eb.tar.gz Essentials-cdb7e3ccbe058bfb8a391b7751ca9fde5af5e1eb.tar.lz Essentials-cdb7e3ccbe058bfb8a391b7751ca9fde5af5e1eb.tar.xz Essentials-cdb7e3ccbe058bfb8a391b7751ca9fde5af5e1eb.zip |
Wait 1 second after deactivation of protect to allow the database to close.
Diffstat (limited to 'EssentialsProtect/src/com/earth2me/essentials')
-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() |