mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-22 10:09:14 +00:00
Have the client disconnect from the daemon if a socket error or
xmlrpclib protocol error is encountered.
This commit is contained in:
parent
2423af8660
commit
979d540a63
1 changed files with 4 additions and 3 deletions
|
@ -95,11 +95,12 @@ class CoreProxy(gobject.GObject):
|
||||||
callback(ret)
|
callback(ret)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
except (socket.error, xmlrpclib.ProtocolError,
|
except (socket.error, xmlrpclib.ProtocolError), e:
|
||||||
deluge.xmlrpclib.Fault, Exception), e:
|
self.set_core_uri(None)
|
||||||
log.warning("Multi-call Exception: %s:%s", e, getattr(e,"message",None))
|
except (deluge.xmlrpclib.Fault, Exception), e:
|
||||||
#self.set_core_uri(None) , disabled : there are many reasons for an exception ; not just an invalid core.
|
#self.set_core_uri(None) , disabled : there are many reasons for an exception ; not just an invalid core.
|
||||||
#todo : publish an exception event, ui's like gtk could popup a dialog for this.
|
#todo : publish an exception event, ui's like gtk could popup a dialog for this.
|
||||||
|
log.warning("Multi-call Exception: %s:%s", e, getattr(e,"message",None))
|
||||||
finally:
|
finally:
|
||||||
self._callbacks = []
|
self._callbacks = []
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue