Author: rshortt
Date: Thu Mar 16 02:46:25 2006
New Revision: 1291

Modified:
   trunk/base/src/ipc.py

Log:
it will IPCDisconnectedError if disconnected, so return False


Modified: trunk/base/src/ipc.py
==============================================================================
--- trunk/base/src/ipc.py       (original)
+++ trunk/base/src/ipc.py       Thu Mar 16 02:46:25 2006
@@ -915,8 +915,12 @@
 
     def ping(self):
         start = time.time()
-        if self.request("PING", None):
-            return time.time() - start
+        try:
+            if self.request("PING", None):
+                return time.time() - start
+        except IPCDisconnectedError:
+            return False
+
         return False
 
 


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to