diff -r 5ecb16be9a3c -r b9b8978dbc9d util/ProcessLogger.py --- a/util/ProcessLogger.py Wed Apr 27 18:42:30 2016 +0300 +++ b/util/ProcessLogger.py Thu Apr 28 12:58:58 2016 +0300 @@ -124,6 +124,12 @@ elif wx.Platform == '__WXGTK__': popenargs["shell"] = False + if timeout: + self.timeout = Timer(timeout,self.endlog) + self.timeout.start() + else: + self.timeout = None + self.Proc = subprocess.Popen( self.Command, **popenargs ) self.outt = outputThread( @@ -139,11 +145,6 @@ self.errors) self.errt.start() - if timeout: - self.timeout = Timer(timeout,self.endlog) - self.timeout.start() - else: - self.timeout = None def output(self,v): self.outdata.append(v)