well
This commit is contained in:
parent
625d4a983a
commit
24b67df9a2
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue