Improved concurrency of build/test/install and changed all e.printStackTrace to Log.e(e)

This commit is contained in:
Josh Larson
2017-03-08 21:06:03 -06:00
parent 9b0b25c8b3
commit 78dac6fba9
26 changed files with 324 additions and 153 deletions
@@ -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);
}
}