forked from LogBlock/LogBlock
Increased time before throwing lock timeout
This commit is contained in:
@@ -58,7 +58,7 @@ public class MySQLConnectionPool implements Closeable
|
||||
}
|
||||
|
||||
public Connection getConnection() throws SQLException, InterruptedException, TimeoutException {
|
||||
if (!lock.tryLock(100, TimeUnit.MILLISECONDS))
|
||||
if (!lock.tryLock(1000, TimeUnit.MILLISECONDS))
|
||||
throw new TimeoutException();
|
||||
try {
|
||||
JDCConnection conn;
|
||||
|
Reference in New Issue
Block a user