Clean-up Patch

Repository Cleanup + updated features (29/12/2015)
This commit is contained in:
ronancpl
2015-12-29 12:59:38 -02:00
parent 7c9f9c9fde
commit 7b4fcf7861
662 changed files with 126416 additions and 90 deletions

View File

@@ -138,9 +138,9 @@ public class Server implements Runnable {
if(ServerConstants.SHUTDOWNHOOK)
Runtime.getRuntime().addShutdownHook(new Thread(shutdown(false)));
Runtime.getRuntime().addShutdownHook(new Thread(shutdown(false)));
DatabaseConnection.getConnection();
//DatabaseConnection.getConnection();
Connection c = DatabaseConnection.getConnection();
try {
PreparedStatement ps = c.prepareStatement("UPDATE accounts SET loggedin = 0");
@@ -150,6 +150,7 @@ public class Server implements Runnable {
ps.executeUpdate();
ps.close();
} catch (SQLException sqle) {
sqle.printStackTrace();
}
IoBuffer.setUseDirectBuffer(false);
IoBuffer.setAllocator(new SimpleBufferAllocator());