MCPcopy Index your code
hub / github.com/HelloZeroNet/ZeroNet / stop

Method stop

src/Worker/Worker.py:159–165  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

157
158 # Force stop the worker
159 def stop(self):
160 self.manager.log.debug("%s: Force stopping" % self.key)
161 self.running = False
162 if self.thread:
163 self.thread.kill(exception=Debug.Notify("Worker stopped"))
164 del self.thread
165 self.manager.removeWorker(self)

Callers 1

stopWorkersMethod · 0.45

Calls 1

removeWorkerMethod · 0.80

Tested by

no test coverage detected