mirror of
https://github.com/yusing/godoxy.git
synced 2025-06-09 04:52:35 +02:00
fix startup panic when no notification provider is set
This commit is contained in:
parent
136a2ec89f
commit
ddc3b8575e
1 changed files with 3 additions and 0 deletions
|
@ -42,6 +42,9 @@ func StartNotifDispatcher(parent task.Parent) *Dispatcher {
|
|||
}
|
||||
|
||||
func Notify(msg *LogMessage) {
|
||||
if dispatcher == nil {
|
||||
return
|
||||
}
|
||||
select {
|
||||
case <-dispatcher.task.Context().Done():
|
||||
return
|
||||
|
|
Loading…
Add table
Reference in a new issue