Skip to content

Commit c98a031

Browse files
committed
fix sse shutdown
1 parent a0e968a commit c98a031

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

server/sse.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,8 @@ func (s *SSEServer) handleSSE(w http.ResponseWriter, r *http.Request) {
269269
case <-r.Context().Done():
270270
close(session.done)
271271
return
272+
case <-session.done:
273+
return
272274
}
273275
}
274276
}

0 commit comments

Comments
 (0)