dont close sql querty before geting result set
This commit is contained in:
parent
c2d298dbff
commit
97199843fa
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue