Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def stop(self):
"""
Stops the actionhandler
:return: None
"""
self.__stop_event.set()
while self.running:
sleep(0.1)
self.__stop_event.clear()
join_threads(self.__threads)
self.__threads = []
def stop(self):
"""Stops dispatching pastes to the analyzers"""
self.__stop_event.set()
while self.running:
sleep(0.1)
self.__stop_event.clear()
join_threads(self.__threads)
self.__threads = []