|
|
@ -147,8 +147,13 @@ func SoonestSignal(signals []QueuedSignal) (*QueuedSignal, <-chan time.Time) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if soonest_signal != nil {
|
|
|
|
if soonest_signal != nil {
|
|
|
|
|
|
|
|
print("SOONEST: ")
|
|
|
|
|
|
|
|
print(soonest_signal.Time.String())
|
|
|
|
|
|
|
|
print(" : ")
|
|
|
|
|
|
|
|
println(soonest_signal.Signal.Type())
|
|
|
|
return soonest_signal, time.After(time.Until(soonest_signal.Time))
|
|
|
|
return soonest_signal, time.After(time.Until(soonest_signal.Time))
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
|
|
|
|
println("NONE_QUEUED")
|
|
|
|
return nil, nil
|
|
|
|
return nil, nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|