[ooni-probe/master] check shouldClose in errReceived as outReceived does

20 Nov
2015
20 Nov
'15
2:41 p.m.
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")
3512
Age (days ago)
3512
Last active (days ago)
0 comments
1 participants
participants (1)
-
art@torproject.org