mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-20 12:42:34 +02:00
fix notif dispatcher nil panic
This commit is contained in:
parent
32871a8a3c
commit
b6c806a789
1 changed files with 3 additions and 0 deletions
|
@ -46,6 +46,9 @@ func StartNotifDispatcher(parent task.Task) *Dispatcher {
|
|||
}
|
||||
|
||||
func Notify(msg *LogMessage) {
|
||||
if dispatcher == nil {
|
||||
return
|
||||
}
|
||||
dispatcher.logCh <- msg
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue