diff --git a/internal/notif/dispatcher.go b/internal/notif/dispatcher.go index 8464b45..8bc4438 100644 --- a/internal/notif/dispatcher.go +++ b/internal/notif/dispatcher.go @@ -46,6 +46,9 @@ func StartNotifDispatcher(parent task.Task) *Dispatcher { } func Notify(msg *LogMessage) { + if dispatcher == nil { + return + } dispatcher.logCh <- msg }