From 97199843fa084bbd8bbea29f89cdeb6ff83df6a4 Mon Sep 17 00:00:00 2001 From: Tyler Murphy Date: Wed, 4 May 2022 16:56:33 -0400 Subject: [PATCH] dont close sql querty before geting result set --- .../net/tylermurphy/hideAndSeek/database/PlayerInfoTable.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/tylermurphy/hideAndSeek/database/PlayerInfoTable.java b/src/main/java/net/tylermurphy/hideAndSeek/database/PlayerInfoTable.java index e6f29b0..142c263 100644 --- a/src/main/java/net/tylermurphy/hideAndSeek/database/PlayerInfoTable.java +++ b/src/main/java/net/tylermurphy/hideAndSeek/database/PlayerInfoTable.java @@ -62,7 +62,6 @@ public class PlayerInfoTable { statement.setBytes(1, bytes); ResultSet rs = statement.executeQuery(); if(rs.next()){ - connection.close(); PlayerInfo info = new PlayerInfo( uuid, rs.getInt("wins"), @@ -71,6 +70,7 @@ public class PlayerInfoTable { rs.getInt("games_played") ); rs.close(); + connection.close(); return info; } rs.close();