MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / stop

Method stop

irc_dpi.py:193–204  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

191 return True
192
193 def stop(self) -> None:
194 self._running = False
195 proc = self._proc
196 if proc and proc.poll() is None:
197 try:
198 proc.terminate()
199 proc.wait(timeout=3)
200 except Exception:
201 try:
202 proc.kill()
203 except Exception:
204 pass
205
206 # ------------------------------------------------------------------ #
207 # Capture

Callers 1

_capture_loopMethod · 0.95

Calls 2

killMethod · 0.80
waitMethod · 0.45

Tested by

no test coverage detected