Skip to content

Commit 7255e4f

Browse files
committed
Remove vestigial session operation cancellation
1 parent 6be55ef commit 7255e4f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/mcp/server/lowlevel/server.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -882,10 +882,7 @@ async def run(
882882
tg,
883883
)
884884
finally:
885-
# Cancel session operations and stop cleanup task
886-
session_id = getattr(session, "session_id", None)
887-
if session_id is not None:
888-
self.async_operations.cancel_session_operations(session_id)
885+
# Stop cleanup task
889886
await self.async_operations.stop_cleanup_task()
890887

891888
async def _handle_message(

0 commit comments

Comments
 (0)