Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6e7c919

Browse files
committed
Only close done channel when notifier is present
Signed-off-by: Danny Kopping <danny@coder.com>
1 parentcb0be34 commit6e7c919

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎coderd/notifications/manager.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,9 @@ func (m *Manager) Run(ctx context.Context) {
153153
// events, creating a notifier, and publishing bulk dispatch result updates to the store.
154154
func (m*Manager)loop(ctx context.Context)error {
155155
deferfunc() {
156-
close(m.done)
156+
ifm.notifier!=nil {
157+
close(m.done)
158+
}
157159
m.log.Info(context.Background(),"notification manager stopped")
158160
}()
159161

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp