mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-18 06:29:42 +02:00
fix startup panic when no notification provider is set
This commit is contained in:
@@ -42,6 +42,9 @@ func StartNotifDispatcher(parent task.Parent) *Dispatcher {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func Notify(msg *LogMessage) {
|
func Notify(msg *LogMessage) {
|
||||||
|
if dispatcher == nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
select {
|
select {
|
||||||
case <-dispatcher.task.Context().Done():
|
case <-dispatcher.task.Context().Done():
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user