diff --git a/internal/notif/dispatcher.go b/internal/notif/dispatcher.go index 8464b452..8bc4438c 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 }