commit 94eeb20f4ce4c1ff9ef35c3a994e6f42ed670f82 Author: juga0 <juga> Date: Sat Sep 19 19:37:13 2015 +0000
check shouldClose in errReceived as outReceived does --- ooni/templates/process.py | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/ooni/templates/process.py b/ooni/templates/process.py index 4939441..1c5cb1d 100644 --- a/ooni/templates/process.py +++ b/ooni/templates/process.py @@ -63,6 +63,9 @@ class ProcessDirector(protocol.ProcessProtocol): def errReceived(self, data): log.debug("STDERR: %s" % data) self.stderr += data + if self.shouldClose(): + self.close("condition_met") +
def inConnectionLost(self): log.debug("inConnectionLost")
tor-commits@lists.torproject.org