Skip to content

Commit 9617776

Browse files
committed
reorder log
1 parent f8f5e68 commit 9617776

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

coderd/notifications/manager.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,14 +348,14 @@ func (m *Manager) Stop(ctx context.Context) error {
348348
m.mu.Lock()
349349
defer m.mu.Unlock()
350350

351-
m.log.Debug(context.Background(), "graceful stop requested")
352-
353351
select {
354352
case <-m.stop:
355353
return nil
356354
default:
357355
}
358356

357+
m.log.Debug(context.Background(), "graceful stop requested")
358+
359359
// If the notifier hasn't been started, we don't need to wait for anything.
360360
// This is only really during testing when we want to enqueue messages only but not deliver them.
361361
if m.notifier != nil {

0 commit comments

Comments
 (0)