aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/PySide6/QtAsyncio/tasks.py
diff options
context:
space:
mode:
authorAdrian Herrmann <adrian.herrmann@qt.io>2023-09-29 22:47:53 +0200
committerAdrian Herrmann <adrian.herrmann@qt.io>2023-10-02 13:19:51 +0200
commit9c9781c6cf1ece5b97e835788d3c0949acbceac2 (patch)
treeb7506c0211bb2a2882e04abfad01920d341b5f97 /sources/pyside6/PySide6/QtAsyncio/tasks.py
parent25a64e5eaddcb403095c2d9f32ba90a0d7c7b340 (diff)
QtAsyncio: Do not stop loop at task completion
An erroneous self._loop.stop() has sneaked into the end of QAsyncioTask._step, causing the event loop to stop prematurely in some scenarios. Pick-to: 6.6 Task-number: PYSIDE-769 Change-Id: If155e43f81675c660766c00e766e8a8f3bbe8b38 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/pyside6/PySide6/QtAsyncio/tasks.py')
-rw-r--r--sources/pyside6/PySide6/QtAsyncio/tasks.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/sources/pyside6/PySide6/QtAsyncio/tasks.py b/sources/pyside6/PySide6/QtAsyncio/tasks.py
index d59073e88..ca33ed346 100644
--- a/sources/pyside6/PySide6/QtAsyncio/tasks.py
+++ b/sources/pyside6/PySide6/QtAsyncio/tasks.py
@@ -111,7 +111,6 @@ class QAsyncioTask(futures.QAsyncioFuture):
if self.done():
self._schedule_callbacks()
asyncio._unregister_task(self) # type: ignore[arg-type]
- self._loop.stop()
def get_stack(self, *, limit=None) -> typing.List[typing.Any]:
# TODO