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