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

Merge branch 'master' into dev

parents 69876922 26872d1b
No related branches found
No related tags found
No related merge requests found
......@@ -117,7 +117,7 @@ else:
setup(
name = "sakia",
version = "0.11.2",
version = "0.11.3",
description = "UCoin client",
author = "Inso",
options = {"build_exe": options},
......
__version_info__ = ('0', '11', '2')
__version_info__ = ('0', '11', '3')
__version__ = '.'.join(__version_info__)
......@@ -279,8 +279,9 @@ class BmaAccess(QObject):
except jsonschema.ValidationError as e:
logging.debug(str(e))
tries += 1
else:
if len(nodes) == 0 or json_data is None:
raise NoPeerAvailable("", len(nodes))
return json_data
async def broadcast(self, request, req_args={}, post_args={}):
"""
......
......@@ -9,7 +9,7 @@ from PyQt5.QtWidgets import QFrame, QLabel, QVBoxLayout, QLayout
from PyQt5.QtCore import QSize, pyqtSignal
from ucoinpy.documents.block import Block
from ..tools.decorators import asyncify
from ..tools.decorators import asyncify, once_at_a_time, cancel_once_task
from ..tools.exceptions import NoPeerAvailable
from sakia.gui.widgets.busy import Busy
......@@ -55,6 +55,10 @@ class CommunityTile(QFrame):
if state != self._state:
self.refresh()
def cancel_refresh(self):
cancel_once_task(self, self.refresh)
@once_at_a_time
@asyncify
async def refresh(self):
self.busy.show()
......
......@@ -29,6 +29,7 @@ class FrameCommunities(QFrame):
def refresh(self, app):
for t in self.tiles:
t.cancel_refresh()
t.setParent(None)
self.tiles = []
if app.current_account:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment