Additional check when setting timeout

This commit is contained in:
2020-06-08 17:18:15 +02:00
parent c46f5ee492
commit 9d9285df23

View File

@@ -149,7 +149,8 @@ proc checkServerChannel(image: Image): bool =
let val = msg.parameter.parseInt * 1000
log "Setting timeout to ", val
args.timeout = val
discard updateTimeout.remove
if updateTimeout > 0:
discard updateTimeout.remove
updateTimeout = int(timeoutAdd(uint32(args.timeout), timedUpdate, image))
of cMode: