mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 11:35:49 +00:00
Fix Vista slowness fix, by not actually changing the 'uri', but simply
replacing 'localhost' with '127.0.0.1' when creating the xmlrpc object.
This commit is contained in:
parent
1a9376b7ea
commit
61b9e4ae0e
1 changed files with 2 additions and 2 deletions
|
@ -131,7 +131,7 @@ class CoreProxy(gobject.GObject):
|
|||
pass
|
||||
self.emit("no_core")
|
||||
|
||||
self._uri = uri.replace("localhost", "127.0.0.1")
|
||||
self._uri = uri
|
||||
# Get a new core
|
||||
self.get_rpc_core()
|
||||
|
||||
|
@ -142,7 +142,7 @@ class CoreProxy(gobject.GObject):
|
|||
def get_rpc_core(self):
|
||||
if self.rpc_core is None and self._uri is not None:
|
||||
log.debug("Creating ServerProxy..")
|
||||
self.rpc_core = xmlrpclib.ServerProxy(self._uri, allow_none=True)
|
||||
self.rpc_core = xmlrpclib.ServerProxy(self._uri.replace("localhost", "127.0.0.1"), allow_none=True)
|
||||
self._multi = xmlrpclib.MultiCall(self.rpc_core)
|
||||
self._multi_timer = gobject.timeout_add(200, self.do_multicall)
|
||||
# Call any callbacks registered
|
||||
|
|
Loading…
Add table
Reference in a new issue