Skip to content

Commit 6b4027a

Browse files
committed
move done outside of mutex hat
1 parent 615f0e6 commit 6b4027a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mcp/streamable.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,11 +198,11 @@ type StreamableServerTransport struct {
198198
id string
199199
opts StreamableServerTransportOptions
200200
incoming chan jsonrpc.Message // messages from the client to the server
201+
done chan struct{}
201202

202203
mu sync.Mutex
203204
// Sessions are closed exactly once.
204205
isDone bool
205-
done chan struct{}
206206

207207
// Sessions can have multiple logical connections, corresponding to HTTP
208208
// requests. Additionally, logical sessions may be resumed by subsequent HTTP

0 commit comments

Comments
 (0)