Created
August 1, 2014 22:42
-
-
Save Pandragon/ea5d371bba846dfe6563 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Eclipse Workspace Patch 1.0 | |
#P L2J_Server_BETA | |
Index: java/com/l2jserver/L2DatabaseFactory.java | |
=================================================================== | |
--- java/com/l2jserver/L2DatabaseFactory.java (revision 6602) | |
+++ java/com/l2jserver/L2DatabaseFactory.java (working copy) | |
@@ -26,7 +26,6 @@ | |
import java.util.logging.Level; | |
import java.util.logging.Logger; | |
-import com.l2jserver.gameserver.ThreadPoolManager; | |
import com.mchange.v2.c3p0.ComboPooledDataSource; | |
/** | |
@@ -175,14 +174,7 @@ | |
try | |
{ | |
con = _source.getConnection(); | |
- if (Server.serverMode == Server.MODE_GAMESERVER) | |
- { | |
- ThreadPoolManager.getInstance().scheduleGeneral(new ConnectionCloser(con, new RuntimeException()), Config.CONNECTION_CLOSE_TIME); | |
- } | |
- else | |
- { | |
- getExecutor().schedule(new ConnectionCloser(con, new RuntimeException()), Config.CONNECTION_CLOSE_TIME, TimeUnit.MILLISECONDS); | |
- } | |
+ getExecutor().schedule(new ConnectionCloser(con, new RuntimeException()), Config.CONNECTION_CLOSE_TIME, TimeUnit.MILLISECONDS); | |
} | |
catch (SQLException e) | |
{ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment