Skip to content

Commit

Permalink
revert change with postponing a performOperation when we are unexpect…
Browse files Browse the repository at this point in the history
…edly still in receiveAsync's processEvents
  • Loading branch information
cwiede committed Oct 31, 2023
1 parent bcd6012 commit 2bb9a68
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 1 addition & 4 deletions nexxT/core/Thread.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,8 @@ def performOperation(self, operation, barrier):
# wait that all threads are in their event loop.
inProcessEvents = self._qthread.property("processEventsRunning")
if inProcessEvents:
logging.getLogger(__name__).debug(
logging.getLogger(__name__).warning(
"operation %s happening during receiveAsync's processEvents. This shouldn't be happening.", operation)
MethodInvoker(dict(object=self, method="performOperation", thread=self.thread()),
Qt.QueuedConnection, operation, barrier)
return

barrier.wait()
if operation in self._operations:
Expand Down
1 change: 0 additions & 1 deletion nexxT/tests/core/test_ActiveApplication.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
from nexxT.interface import FilterState
import os
import time
import pprint
import nexxT.Qt
from nexxT.Qt.QtCore import QCoreApplication, QTimer

Expand Down

0 comments on commit 2bb9a68

Please sign in to comment.