Explorar el Código

call the defer.callback when done.

Steve Thielemann hace 5 años
padre
commit
58f3e7cc17
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4 1
      tcp-proxy.py

+ 4 - 1
tcp-proxy.py

@@ -235,8 +235,11 @@ class ProxyMenu(object):
             self.keepalive = None
             self.queue_game.put(self.prompt)
             self.prompt = None
+
+            # Were we asked to do something when we were done here?
             if self.defer:
-                self.defer.callback()
+                reactor.CallLater(0, self.defer.callback, None)
+                # self.defer.callback()
                 self.defer = None
             return