From da58b04774aa68bec243c523100d8cd030e98846 Mon Sep 17 00:00:00 2001 From: Noah Metz Date: Sun, 30 Jul 2023 11:12:47 -0600 Subject: [PATCH] fix --- node.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/node.go b/node.go index 7158d05..45157d3 100644 --- a/node.go +++ b/node.go @@ -146,9 +146,8 @@ func SoonestSignal(signals []QueuedSignal) (*QueuedSignal, <-chan time.Time) { } } - node_timeout := time.Until(soonest_time) if soonest_signal != nil { - return soonest_signal, time.After(node_timeout) + return soonest_signal, time.After(time.Until(soonest_signal.Time)) } else { return nil, nil }