We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb0be34 commit 6e7c919Copy full SHA for 6e7c919
coderd/notifications/manager.go
@@ -153,7 +153,9 @@ func (m *Manager) Run(ctx context.Context) {
153
// events, creating a notifier, and publishing bulk dispatch result updates to the store.
154
func (m *Manager) loop(ctx context.Context) error {
155
defer func() {
156
- close(m.done)
+ if m.notifier != nil {
157
+ close(m.done)
158
+ }
159
m.log.Info(context.Background(), "notification manager stopped")
160
}()
161
0 commit comments