Skip to content

Commit 0b72210

Browse files
committed
fix deadlock
1 parent 748de2b commit 0b72210

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

mcp/server.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -853,9 +853,6 @@ func (ss *ServerSession) ping(context.Context, *PingParams) (*emptyResult, error
853853
}
854854

855855
func (ss *ServerSession) setLevel(ctx context.Context, params *SetLevelParams) (*emptyResult, error) {
856-
ss.mu.Lock()
857-
defer ss.mu.Unlock()
858-
859856
state, err := ss.loadState(ctx)
860857
if err != nil {
861858
return nil, err

0 commit comments

Comments
 (0)