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

Crashes due to threads are gone ?

parent d5467cd4
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,7 @@ class Monitor(object):
# Dirty hack to avoid GC on monitors
# GC was causing random crashes
# We will get rid of QThreads asap
___dirty_monitors = []
#___dirty_monitors = []
def __init__(self, account):
'''
......@@ -30,7 +30,7 @@ class Monitor(object):
self._blockchain_watchers = {}
self._network_watchers = {}
self._persons_watchers = {}
Monitor.___dirty_monitors.append(self)
#Monitor.___dirty_monitors.append(self)
def blockchain_watcher(self, community):
return self._blockchain_watchers[community.name]
......@@ -45,7 +45,7 @@ class Monitor(object):
thread = QThread()
watcher.moveToThread(thread)
thread.started.connect(watcher.watch)
watcher.watching_stopped.connect(thread.exit, Qt.DirectConnection)
watcher.watching_stopped.connect(thread.exit)
self.threads_pool.append(thread)
......
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