MCPcopy Create free account
hub / github.com/Ishabdullah/Codey-v2 / close

Method close

core/state.py:51–57  ·  view source on GitHub ↗

Close the persistent connection.

(self)

Source from the content-addressed store, hash-verified

49 self._init_schema()
50
51 def close(self):
52 """Close the persistent connection."""
53 with self._lock:
54 try:
55 self._conn.close()
56 except Exception:
57 pass
58
59 def _init_schema(self):
60 """Initialize database schema if not exists."""

Callers 15

_is_port_in_useMethod · 0.45
reset_state_storeFunction · 0.45
_handle_clientMethod · 0.45
stopMethod · 0.45
_trigger_shutdownMethod · 0.45
is_daemon_runningFunction · 0.45
send_commandFunction · 0.45
run_peerFunction · 0.45
_is_port_openMethod · 0.45
is_server_runningMethod · 0.45
_infer_streamingMethod · 0.45
_ensure_schemaMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected