From c922120bbf01acacb6555ece55d4b15d3e43339a Mon Sep 17 00:00:00 2001 From: Inso <insomniak.fr@gmail.com> Date: Wed, 22 Jul 2015 19:35:21 +0200 Subject: [PATCH] Fix exception #184 --- src/cutecoin/core/net/network.py | 1 + src/cutecoin/core/registry/identities.py | 1 + 2 files changed, 2 insertions(+) diff --git a/src/cutecoin/core/net/network.py b/src/cutecoin/core/net/network.py index 26d1a4c9..cae7e7af 100644 --- a/src/cutecoin/core/net/network.py +++ b/src/cutecoin/core/net/network.py @@ -220,6 +220,7 @@ class Network(QObject): node.check_sync(self.latest_block) else: if node.last_change + 3600 < time.time(): + node.disconnect() self.nodes.remove(node) self.nodes_changed.emit() diff --git a/src/cutecoin/core/registry/identities.py b/src/cutecoin/core/registry/identities.py index 68576072..9cb8032b 100644 --- a/src/cutecoin/core/registry/identities.py +++ b/src/cutecoin/core/registry/identities.py @@ -68,6 +68,7 @@ class IdentitiesRegistry: @asyncio.coroutine def future_find(self, pubkey, community): def handle_certifiersof_reply(reply, tries=0): + err = reply.error() if reply.error() == QNetworkReply.NoError: status_code = reply.attribute(QNetworkRequest.HttpStatusCodeAttribute) if status_code == 200: -- GitLab