forked from 2009Scape/Server
Another batch of preemptive bugfixing
This commit is contained in:
parent
62ab9e80a9
commit
13dce7226e
19 changed files with 84 additions and 84 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue