File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
src/uipath_mcp/_cli/_runtime Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 11[project ]
22name = " uipath-mcp"
3- version = " 0.0.6 "
3+ version = " 0.0.7 "
44description = " UiPath MCP SDK"
55readme = { file = " README.md" , content-type = " text/markdown" }
66requires-python = " >=3.10"
Original file line number Diff line number Diff line change @@ -273,9 +273,13 @@ async def cleanup(self) -> None:
273273
274274 self .session_servers .clear ()
275275
276- if self .signalr_client :
277- # Close the SignalR connection
278- await self .signalr_client ._transport ._ws .close ()
276+ if self .signalr_client and hasattr (self .signalr_client , "_transport" ):
277+ transport = self .signalr_client ._transport
278+ if transport and hasattr (transport , "_ws" ) and transport ._ws :
279+ try :
280+ await transport ._ws .close ()
281+ except Exception as e :
282+ logger .error (f"Error closing SignalR WebSocket: { str (e )} " )
279283
280284 # Add a small delay to allow the server to shut down gracefully
281285 if sys .platform == "win32" :
You can’t perform that action at this time.
0 commit comments