mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-30 13:51:52 +02:00
fix notif dispatcher nil panic
This commit is contained in:
@@ -46,6 +46,9 @@ func StartNotifDispatcher(parent task.Task) *Dispatcher {
|
||||
}
|
||||
|
||||
func Notify(msg *LogMessage) {
|
||||
if dispatcher == nil {
|
||||
return
|
||||
}
|
||||
dispatcher.logCh <- msg
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user