[Minor] don't try to retry null message
This commit is contained in:
parent
d8e51c67ec
commit
e1ce116460
|
@ -546,9 +546,12 @@ public class PlcGwClientHandler extends StrolchComponent implements GlobalPlcLis
|
|||
} catch (Exception e) {
|
||||
closeBrokenGwSessionUpdateState("Failed to send message",
|
||||
"Failed to send message, reconnecting in " + RETRY_DELAY + "s.");
|
||||
if (callable != null) {
|
||||
this.messageQueue.addFirst(callable);
|
||||
logger.error("Failed to send message, reconnecting in " + RETRY_DELAY + "s. And then retrying message.",
|
||||
logger.error(
|
||||
"Failed to send message, reconnecting in " + RETRY_DELAY + "s. And then retrying message.",
|
||||
e);
|
||||
}
|
||||
|
||||
delayConnect(RETRY_DELAY, TimeUnit.SECONDS);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue