Skip to content

Commit

Permalink
fix _ProactorEventLoop initialization bug
Browse files Browse the repository at this point in the history
`QtCore.QObject.__init__(self)` and `asyncio.ProactorEventLoop.__init__(self, _IocpProactor())` causes double initialization of asyncio.ProactorEventLoop, according to mro.
Possibly related to harvimt#38.
  • Loading branch information
peterazmanov committed Nov 16, 2015
1 parent 540ab6a commit c389555
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions quamash/_windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ class _ProactorEventLoop(QtCore.QObject, asyncio.ProactorEventLoop):
"""Proactor based event loop."""

def __init__(self):
QtCore.QObject.__init__(self)
asyncio.ProactorEventLoop.__init__(self, _IocpProactor())
super().__init__(proactor=_IocpProactor())

self.__event_poller = _EventPoller()
self.__event_poller.sig_events.connect(self._process_events)
Expand Down

0 comments on commit c389555

Please sign in to comment.