Author: duncan
Date: Mon Feb 11 16:04:53 2008
New Revision: 10361

Log:
The connection can be closed during the sleep
This checks the connection first.


Modified:
   branches/rel-1/freevo/src/audio/plugins/mpdclient2.py

Modified: branches/rel-1/freevo/src/audio/plugins/mpdclient2.py
==============================================================================
--- branches/rel-1/freevo/src/audio/plugins/mpdclient2.py       (original)
+++ branches/rel-1/freevo/src/audio/plugins/mpdclient2.py       Mon Feb 11 
16:04:53 2008
@@ -349,6 +349,8 @@
     while True:
         sleep(10)
         try:
+            if not conn:
+                return
             conn.ping()
         except socket.error:
             return

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to