Wait 1 second after deactivation of protect to allow the database to close.

This commit is contained in:
snowleo 2011-08-21 21:27:22 +02:00
parent 040e2bee86
commit af248a1d2e

View file

@ -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()