Don't call processEvents in NetworkManager.
This caused the segfaults and memory corruption issues mentioned in #256.
This commit is contained in:
parent
3622f35865
commit
2514e66028
@ -46,11 +46,6 @@ class NetworkManager(QNetworkAccessManager):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, win_id, parent=None):
|
def __init__(self, win_id, parent=None):
|
||||||
# It seems QNetworkAccessManager somehow calls processEvents which
|
|
||||||
# causes some trouble, so we try to process outstanding events here
|
|
||||||
# first.
|
|
||||||
app = objreg.get('app')
|
|
||||||
app.processEvents()
|
|
||||||
log.init.debug("Initializing NetworkManager")
|
log.init.debug("Initializing NetworkManager")
|
||||||
with log.disable_qt_msghandler():
|
with log.disable_qt_msghandler():
|
||||||
# WORKAROUND for a hang when a message is printed - See:
|
# WORKAROUND for a hang when a message is printed - See:
|
||||||
|
Loading…
Reference in New Issue
Block a user