Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Serial-Studio/Serial-Studio
/ disconnect
Method
disconnect
tests/integration/test_mcp.py:71–78 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
69
)
from
exc
70
71
def
disconnect(self) -> None:
72
if
self._sock:
73
try
:
74
self._sock.close()
75
except
Exception:
76
pass
77
self._sock = None
78
self._buf = b
""
79
80
def
__enter__(self):
81
self.connect()
Callers
9
__exit__
Method · 0.95
mcp
Function · 0.95
fresh_mcp
Function · 0.95
safe_command
Function · 0.45
safe_command
Function · 0.45
close
Method · 0.45
_fuzz_send
Function · 0.45
_assert_server_alive
Function · 0.45
test_batch_edge_cases
Function · 0.45
Calls
1
close
Method · 0.45
Tested by
no test coverage detected