MCPcopy Create free account
hub / github.com/andreikop/python-ws-discovery / _stopThreads

Method _stopThreads

wsdiscovery/threaded.py:419–432  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

417 logger.debug("address monitoring threads started")
418
419 def _stopThreads(self):
420 if self._networkingThread_v4 is not None:
421 self._networkingThread_v4.schedule_stop()
422 self._addrsMonitorThread_v4.schedule_stop()
423 self._networkingThread_v4.join()
424 self._addrsMonitorThread_v4.join()
425 self._networkingThread_v4 = None
426
427 if self._networkingThread_v6 is not None:
428 self._networkingThread_v6.schedule_stop()
429 self._addrsMonitorThread_v6.schedule_stop()
430 self._networkingThread_v6.join()
431 self._addrsMonitorThread_v6.join()
432 self._networkingThread_v6 = None
433
434 def start(self):
435 """start networking - should be called before using other methods"""

Callers 1

stopMethod · 0.95

Calls 2

schedule_stopMethod · 0.80
joinMethod · 0.80

Tested by

no test coverage detected