fix notif dispatcher nil panic

This commit is contained in:
yusing 2024-12-13 00:46:45 +08:00
parent 32871a8a3c
commit b6c806a789

View file

@ -46,6 +46,9 @@ func StartNotifDispatcher(parent task.Task) *Dispatcher {
}
func Notify(msg *LogMessage) {
if dispatcher == nil {
return
}
dispatcher.logCh <- msg
}