Fixed issue with double run() call in loadClientByName.

This commit is contained in:
Jonathan Williams 2015-04-02 23:36:16 -07:00
parent 7a0f9d28bf
commit 437c70e548

View File

@ -220,7 +220,13 @@ public class CoreClientManager extends MiniPlugin
if (client.getAccountId() > 0)
_accountCacheRepository.addElement(new AccountCache(uuid, client.getAccountId()));
}
catch (Exception exception)
{
exception.printStackTrace();
}
finally
{
Bukkit.getServer().getScheduler().runTask(getPlugin(), new Runnable()
{
public void run()
@ -230,14 +236,6 @@ public class CoreClientManager extends MiniPlugin
}
});
}
catch (Exception exception)
{
exception.printStackTrace();
}
finally
{
runnable.run();
}
}
});
}