close hibernate session when removing a game. shouldn't have to explicitly do it but why not
This commit is contained in:
parent
972229aa17
commit
18e51e9d04
|
@ -274,6 +274,7 @@ public class Game {
|
|||
}
|
||||
// this seems terrible
|
||||
if (players.size() == 0) {
|
||||
hibernateSession.close();
|
||||
gameManager.destroyGame(id);
|
||||
}
|
||||
if (players.size() < 3 && state != GameState.LOBBY) {
|
||||
|
|
Loading…
Reference in New Issue