Another batch of preemptive bugfixing

This commit is contained in:
ceikry 2021-07-26 07:33:07 -05:00
parent 62ab9e80a9
commit 13dce7226e
19 changed files with 84 additions and 84 deletions

View file

@ -132,6 +132,8 @@ public final class PlayerSession {
ex.printStackTrace();
SQLManager.close(connection);
return false;
} finally {
SQLManager.close(connection);
}
return true;
}
@ -160,6 +162,8 @@ public final class PlayerSession {
} catch (SQLException e) {
e.printStackTrace();
SQLManager.close(connection);
} finally {
SQLManager.close(connection);
}
communication.clear();
}
@ -201,6 +205,8 @@ public final class PlayerSession {
} catch (SQLException e) {
e.printStackTrace();
SQLManager.close(connection);
} finally {
SQLManager.close(connection);
}
}
@ -459,7 +465,9 @@ public final class PlayerSession {
@Override
public boolean equals(Object o) {
return username.equals(((PlayerSession) o).username);
if(o instanceof PlayerSession) {
return username.equals(((PlayerSession) o).username);
} else return false;
}
@Override