summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/_emerge/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index cc7191ba4..fb3bd1e35 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -1642,6 +1642,8 @@ class AsynchronousTask(SlotObject):
self._start_listeners.append(f)
def removeStartListener(self, f):
+ if self._start_listeners is None:
+ return
self._start_listeners.remove(f)
def _start_hook(self):
@@ -1661,6 +1663,8 @@ class AsynchronousTask(SlotObject):
self._exit_listeners.append(f)
def removeExitListener(self, f):
+ if self._exit_listeners is None:
+ return
self._exit_listeners.remove(f)
def _wait_hook(self):