summaryrefslogtreecommitdiffstats
path: root/modules/eventsource/manager_run.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/eventsource/manager_run.go')
-rw-r--r--modules/eventsource/manager_run.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/eventsource/manager_run.go b/modules/eventsource/manager_run.go
index 75d3ee5b01..ccfe2e0709 100644
--- a/modules/eventsource/manager_run.go
+++ b/modules/eventsource/manager_run.go
@@ -17,6 +17,9 @@ import (
// Init starts this eventsource
func (m *Manager) Init() {
+ if setting.UI.Notification.EventSourceUpdateTime <= 0 {
+ return
+ }
go graceful.GetManager().RunWithShutdownContext(m.Run)
}