This commit is contained in:
DaMachinator 2018-01-20 17:47:44 -05:00 committed by Arcanitor
parent 625d4a983a
commit 24b67df9a2
1 changed files with 3 additions and 1 deletions

View File

@ -26,7 +26,7 @@ public class MessageHandler implements Runnable {
while(true) {
transmitFromQueue();
receiveToQueue();
sleep(50);
sleep(1000);
}
} catch (Exception e) {
@ -35,6 +35,7 @@ public class MessageHandler implements Runnable {
} else if (e instanceof IOException) {
CivilEngineering.logger.error("Error connecting to bridge server!");
CivilEngineering.logger.error(e.getMessage());
}
}
@ -71,6 +72,7 @@ public class MessageHandler implements Runnable {
CivilEngineering.logger.error("Server returned "+connection.getResponseCode());
break;
}
nextMessage = xmitQueue.poll();
}
}