Changeset bd85ec5 for skype/skyped.py


Ignore:
Timestamp:
2008-05-16T11:09:24Z (16 years ago)
Author:
Miklos Vajna <vmiklos@…>
Branches:
master
Children:
5588f7c4
Parents:
5293707
Message:

skyped: close the socket on read/write error

  • it turns out that once we have a read/write error we can never use the socket again so just close it then bitlbee will reconnect properly
File:
1 edited

Legend:

Unmodified
Added
Removed
  • skype/skyped.py

    r5293707 rbd85ec5  
    5959                except Exception, s:
    6060                        dprint("Warning, receiving 1024 bytes failed (%s)." % s)
    61                         return True
     61                        fd.close()
     62                        return False
    6263                for i in input.split("\n"):
    6364                        skype.send(i.strip())
     
    155156                                except Exception, s:
    156157                                        dprint("Warning, sending '%s' failed (%s)." % (e, s))
     158                                        options.conn.close()
    157159
    158160        def send(self, msg_text):
Note: See TracChangeset for help on using the changeset viewer.