aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/PySide6/QtAsyncio/tasks.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6/PySide6/QtAsyncio/tasks.py')
-rw-r--r--sources/pyside6/PySide6/QtAsyncio/tasks.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/sources/pyside6/PySide6/QtAsyncio/tasks.py b/sources/pyside6/PySide6/QtAsyncio/tasks.py
index 027615f21..78f9dfb0c 100644
--- a/sources/pyside6/PySide6/QtAsyncio/tasks.py
+++ b/sources/pyside6/PySide6/QtAsyncio/tasks.py
@@ -135,8 +135,6 @@ class QAsyncioTask(futures.QAsyncioFuture):
def cancel(self, msg: typing.Optional[str] = None) -> bool:
if self.done():
return False
- if (isinstance(self._handle, events.QAsyncioHandle)):
- self._handle._cancel_exception_msg = msg
self._cancel_message = msg
self._handle.cancel()
self._state = futures.QAsyncioFuture.FutureState.CANCELLED