8000 fix sse shutdown (#128) · mark3labs/mcp-go@2e4af4c · GitHub
[go: up one dir, main page]

Skip to content

Commit 2e4af4c

Browse files
authored
fix sse shutdown (#128)
1 parent 9f39a43 commit 2e4af4c

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
@@ -321,6 +321,8 @@ func (s *SSEServer) handleSSE(w http.ResponseWriter, r *http.Request) {
321321
case <-r.Context().Done():
322322
close(session.done)
323323
return
324+
case <-session.done:
325+
return
324326
}
325327
}
326328
}

0 commit comments

Comments
 (0)
0