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

Method stop

core/daemon.py:355–362  ·  view source on GitHub ↗

Stop the socket server.

(self)

Source from the content-addressed store, hash-verified

353 await self.server.serve_forever()
354
355 async def stop(self):
356 """Stop the socket server."""
357 self.running = False
358 if self.server:
359 self.server.close()
360 await self.server.wait_closed()
361 SOCKET_FILE.unlink(missing_ok=True)
362 info("Daemon socket stopped")
363
364
365# ==================== Daemon Core ====================

Callers 2

shutdownFunction · 0.45
_main_loopMethod · 0.45

Calls 2

infoFunction · 0.90
closeMethod · 0.45

Tested by

no test coverage detected