mirror of
https://bitbucket.org/projectswg/lightspeed.git
synced 2026-10-04 20:12:54 -04:00
Improved concurrency of build/test/install and changed all e.printStackTrace to Log.e(e)
This commit is contained in:
@@ -121,7 +121,7 @@ public class TCPServer {
|
||||
callbackManager.callOnEach((callback) -> callback.onConnectionDisconnect(s, sock));
|
||||
return true;
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
Log.e(e);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -146,7 +146,7 @@ public class TCPServer {
|
||||
channel.close();
|
||||
return true;
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
Log.e(e);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
@@ -213,7 +213,7 @@ public class TCPServer {
|
||||
selector.select();
|
||||
processSelectionKeys(selector);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
Log.e(e);
|
||||
try {
|
||||
Thread.sleep(100);
|
||||
} catch (InterruptedException e1) {
|
||||
@@ -222,7 +222,7 @@ public class TCPServer {
|
||||
}
|
||||
}
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
Log.e(e);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -264,7 +264,7 @@ public class TCPServer {
|
||||
callbackManager.callOnEach((callback) -> callback.onIncomingConnection(sc.socket()));
|
||||
}
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
Log.e(e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user