fixed short process wainting bug. Seems wait() fail when process already finisshed... TO BE CONFIRMED.
authorgreg
Tue, 11 Mar 2008 12:44:02 +0100
changeset 130 9af34a1d33b7
parent 129 ec54cd416528
child 131 f6b58bdaf134
fixed short process wainting bug. Seems wait() fail when process already finisshed... TO BE CONFIRMED.
wxPopen.py
--- a/wxPopen.py	Tue Mar 11 10:42:26 2008 +0100
+++ b/wxPopen.py	Tue Mar 11 12:44:02 2008 +0100
@@ -54,7 +54,10 @@
                 wx.CallAfter(self.callback,outchunk)
             self.retval=self.Proc.poll()
         if self.endcallback:
-            err = self.Proc.wait()
+            try:
+            	err = self.Proc.wait()
+            except:
+            	pass
             self.finished = True
             wx.CallAfter(self.endcallback, self.Proc.pid, self.retval)