Skip to content

Commit 0ac86e7

Browse files
committed
Revert "Use Duration.since in comms"
This reverts commit 12a4a77. Argument mismatch for 'Time.to'. <pkg:lightbug>/services/comms/comms.toit:322:66
1 parent a0588b9 commit 0ac86e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/comms/comms.toit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ class Comms:
319319
yield
320320
sleep TimeoutCheckEvery_
321321
waitTimeouts.do --keys=true: | key |
322-
durationSinceTimeout := Duration.since waitTimeouts[key].to
322+
durationSinceTimeout := (waitTimeouts[key].to Time.now)
323323
if (durationSinceTimeout > (Duration --s=0)):
324324
log.debug "Timeout for message: " + key.stringify + " expired " + durationSinceTimeout.stringify + " ago"
325325
// Remove the timeout key, complete the latch, and remove all callbacks?!

0 commit comments

Comments
 (0)