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

Build with QtWebKitWidgets

parent f295ff30
No related branches found
No related tags found
No related merge requests found
......@@ -61,7 +61,8 @@ then
--enable QtCore \
--enable QtWidgets \
--enable QtGui \
--enable QtSvg\
--enable QtSvg \
--enable QtWebKitWidgets \
--enable QtTest
elif [ $TRAVIS_OS_NAME == "linux" ]
then
......@@ -70,6 +71,7 @@ then
--enable QtWidgets \
--enable QtGui \
--enable QtSvg\
--enable QtWebKitWidgets \
--enable QtTest
fi
......
......@@ -575,11 +575,14 @@ class Account(QObject):
c.start_coroutines()
async def stop_coroutines(self):
logging.debug("Stop communities coroutines")
for c in self.communities:
await c.stop_coroutines()
logging.debug("Stop wallets coroutines")
for w in self.wallets:
w.stop_coroutines()
logging.debug("Account coroutines stopped")
def jsonify(self):
"""
......
......@@ -49,6 +49,6 @@ def parse_arguments(argv):
level=logging.INFO)
else:
logging.getLogger().propagate = False
logging.getLogger('quamash').setLevel(logging.INFO)
logging.getLogger('quamash').setLevel(logging.DEBUG)
logfile = FileHandler(path.join(parameters['home'], 'sakia.log'))
logging.getLogger().addHandler(logfile)
......@@ -147,10 +147,12 @@ class Network(QObject):
"""
self._must_crawl = False
close_tasks = []
logging.debug("Start closing")
for node in self.nodes:
close_tasks.append(asyncio.ensure_future(node.close_ws()))
if len(close_tasks) > 0:
await asyncio.wait(close_tasks, timeout=15)
logging.debug("Closing client session")
await self._client_session.close()
logging.debug("Closed")
......
......@@ -72,6 +72,10 @@ if __name__ == '__main__':
loop.run_forever()
try:
loop.run_until_complete(app.stop())
logging.debug("Application stopped")
except asyncio.CancelledError:
logging.info('CancelledError')
logging.debug("Exiting")
sys.exit()
logging.debug("Application stopped")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment