SteamWar/SpigotCore
Archiviert
13
0

Prevent infinite recursion
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
Lixfel 2021-11-09 10:49:41 +01:00
Ursprung 2e528918bb
Commit d3ebbafeda

Datei anzeigen

@ -171,11 +171,14 @@ public class SQL {
private synchronized <T> T prepare(SQLRunnable<T> runnable, Object... objects) { private synchronized <T> T prepare(SQLRunnable<T> runnable, Object... objects) {
try { try {
setObjects(objects); try {
return runnable.run(); setObjects(objects);
} catch (CommunicationsException e) { return runnable.run();
reset(); } catch (CommunicationsException e) {
return prepare(runnable, objects); reset();
setObjects(objects);
return runnable.run();
}
} catch (SQLException e) { } catch (SQLException e) {
throw new SecurityException("Could not execute SQL statement", e); throw new SecurityException("Could not execute SQL statement", e);
} }