Author: dmeyer
Date: Fri Dec 7 15:57:31 2007
New Revision: 2912
Log:
handle crash on closed socket
Modified:
trunk/base/src/notifier/pynotifier/nf_generic.py
Modified: trunk/base/src/notifier/pynotifier/nf_generic.py
==============================================================================
--- trunk/base/src/notifier/pynotifier/nf_generic.py (original)
+++ trunk/base/src/notifier/pynotifier/nf_generic.py Fri Dec 7 15:57:31 2007
@@ -206,7 +206,7 @@
while len( __current_sockets[ condition ] ):
sock = __current_sockets[ condition ].pop( 0 )
is_socket = isinstance( sock, ( socket.socket,
file, socket._socketobject ) )
- if ( is_socket and sock.fileno() != -1 ) or \
+ if ( is_socket and (getattr(sock, 'closed',
False) or sock.fileno() != -1 )) or \
( isinstance( sock, int ) and sock
!= -1 ):
if __sockets[ condition ].has_key( sock
) and \
not __sockets[ condition ][
sock ]( sock ):
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog