Skip to content
Snippets Groups Projects
Commit c922120b authored by inso's avatar inso
Browse files

Fix exception #184

parent 14ae871a
Branches
Tags
No related merge requests found
...@@ -220,6 +220,7 @@ class Network(QObject): ...@@ -220,6 +220,7 @@ class Network(QObject):
node.check_sync(self.latest_block) node.check_sync(self.latest_block)
else: else:
if node.last_change + 3600 < time.time(): if node.last_change + 3600 < time.time():
node.disconnect()
self.nodes.remove(node) self.nodes.remove(node)
self.nodes_changed.emit() self.nodes_changed.emit()
......
...@@ -68,6 +68,7 @@ class IdentitiesRegistry: ...@@ -68,6 +68,7 @@ class IdentitiesRegistry:
@asyncio.coroutine @asyncio.coroutine
def future_find(self, pubkey, community): def future_find(self, pubkey, community):
def handle_certifiersof_reply(reply, tries=0): def handle_certifiersof_reply(reply, tries=0):
err = reply.error()
if reply.error() == QNetworkReply.NoError: if reply.error() == QNetworkReply.NoError:
status_code = reply.attribute(QNetworkRequest.HttpStatusCodeAttribute) status_code = reply.attribute(QNetworkRequest.HttpStatusCodeAttribute)
if status_code == 200: if status_code == 200:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment