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 f8f5e68 commit 9617776Copy full SHA for 9617776
coderd/notifications/manager.go
@@ -348,14 +348,14 @@ func (m *Manager) Stop(ctx context.Context) error {
348
m.mu.Lock()
349
defer m.mu.Unlock()
350
351
- m.log.Debug(context.Background(), "graceful stop requested")
352
-
353
select {
354
case <-m.stop:
355
return nil
356
default:
357
}
358
+ m.log.Debug(context.Background(), "graceful stop requested")
+
359
// If the notifier hasn't been started, we don't need to wait for anything.
360
// This is only really during testing when we want to enqueue messages only but not deliver them.
361
if m.notifier != nil {
0 commit comments