mirror of
https://github.com/GeorgH93/Minepacks.git
synced 2024-12-28 17:48:22 +01:00
Cleanup resources
This commit is contained in:
parent
520c54c909
commit
eabff6dc2e
@ -61,9 +61,9 @@ public SQL(MinePacks mp)
|
||||
// Delete old backpacks
|
||||
if(maxAge > 0)
|
||||
{
|
||||
try
|
||||
try(Connection connection = getConnection(); Statement statement = connection.createStatement())
|
||||
{
|
||||
getConnection().createStatement().execute(queryDeleteOldBackpacks);
|
||||
statement.execute(queryDeleteOldBackpacks);
|
||||
}
|
||||
catch(SQLException e)
|
||||
{
|
||||
@ -409,4 +409,4 @@ public Backpack loadBackpack(OfflinePlayer player) // The sync function shouldn'
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user