diff --git a/Software/threads/customthreads.py b/Software/threads/customthreads.py index a37dc9d..e7bccab 100644 --- a/Software/threads/customthreads.py +++ b/Software/threads/customthreads.py @@ -159,7 +159,7 @@ def run(self): logging.info("Initialising Controller...") - mngr = pyjoystick.ThreadEventManager(self.__controller_add, self.__controller_remove, self.__controller_process, alive=self.__controller_alive) + mngr = pyjoystick.ThreadEventManager(self.__controller_add, self.__controller_remove, self.__controller_process) mngr.start() self.init_event.set() @@ -196,9 +196,6 @@ def __controller_process(self, key): logging.debug("Controller event: " + str(key)) self.pipe.append(data) - def __controller_alive(self): - return self.stop_event.is_set() - class ImageProcessingThread(Thread): def __init__(self, pipe, stop_event, init_event, pause_event): super(ImageProcessingThread, self).__init__(name="ImageProcessingThread")