diff --git a/qasync/__init__.py b/qasync/__init__.py index 3363e97..8c5a02f 100644 --- a/qasync/__init__.py +++ b/qasync/__init__.py @@ -152,6 +152,9 @@ def run(self): else: self._logger.debug("Future was canceled") + # Delete references + del command, future, callback, args, kwargs + self._logger.debug("Thread #%s stopped", self.__num) def wait(self):