From d41ccf907213d33582c10f960cafb89d38806aba Mon Sep 17 00:00:00 2001 From: GJ Date: Wed, 28 Aug 2013 13:12:24 -0400 Subject: [PATCH] Don't loop forever if not connected. --- .../java/com/gmail/nossr50/database/SQLDatabaseManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/database/SQLDatabaseManager.java b/src/main/java/com/gmail/nossr50/database/SQLDatabaseManager.java index 66e720523..75d18fd62 100644 --- a/src/main/java/com/gmail/nossr50/database/SQLDatabaseManager.java +++ b/src/main/java/com/gmail/nossr50/database/SQLDatabaseManager.java @@ -346,7 +346,7 @@ public final class SQLDatabaseManager implements DatabaseManager { public PlayerProfile loadPlayerProfile(String playerName, boolean create) { if (!checkConnected()) { - return loadPlayerProfile(playerName, false); //Retry if not connected + return new PlayerProfile(playerName, create); // return fake profile if not connected } PreparedStatement statement = null;