mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-20 20:52:33 +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) {
|
func Notify(msg *LogMessage) {
|
||||||
|
if dispatcher == nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
dispatcher.logCh <- msg
|
dispatcher.logCh <- msg
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue