Oops - rekey-wait-deadline is absolute, not relative
This commit is contained in:
parent
282d3671ad
commit
17a537b5a2
|
@ -476,8 +476,7 @@
|
|||
(flush-outbound-messages! conn)
|
||||
(loop (struct-copy connection conn [rekey-state (rekey-local algs)])))
|
||||
(sync (if (rekey-wait? rekey)
|
||||
(handle-evt (alarm-evt (+ (current-inexact-milliseconds)
|
||||
(* (rekey-wait-deadline rekey) 1000)))
|
||||
(handle-evt (alarm-evt (* (rekey-wait-deadline rekey) 1000))
|
||||
(lambda (dummy) (loop conn)))
|
||||
never-evt)
|
||||
(handle-evt (send (connection-io-room-handle conn) listen-evt)
|
||||
|
|
Loading…
Reference in New Issue