Don't loop forever if not connected.

This commit is contained in:
GJ 2013-08-28 13:12:24 -04:00
parent c98d298cf1
commit d41ccf9072

View File

@ -346,7 +346,7 @@ public final class SQLDatabaseManager implements DatabaseManager {
public PlayerProfile loadPlayerProfile(String playerName, boolean create) { public PlayerProfile loadPlayerProfile(String playerName, boolean create) {
if (!checkConnected()) { if (!checkConnected()) {
return loadPlayerProfile(playerName, false); //Retry if not connected return new PlayerProfile(playerName, create); // return fake profile if not connected
} }
PreparedStatement statement = null; PreparedStatement statement = null;