summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2023-12-04 14:45:57 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2023-12-04 17:26:37 +0100
commit274e078a6e94e477b594839355cc709829d921dd (patch)
tree4a9176de1936dcefb8db742deb9d82a59269918e /vcl
parenta6dc2a42263816461600307b5f8271a5c5d8d031 (diff)
Relax assertion a bit
When running UITests on Windows with parallelism, I often see this assertion failing. I don't know why; but every time I attach the debugger to the failed process, I see mpSchedulerStack's mpTask and mpNext are both nullptr. The only place where this can happen is Task::~Task, which seems to suggest that this situation is basically the same as no mpSchedulerStack. Change-Id: I2485333944b6d56a365820bc4ca781098e508f48 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160304 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/app/scheduler.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/app/scheduler.cxx b/vcl/source/app/scheduler.cxx
index 098242fe6c70..e6893055f633 100644
--- a/vcl/source/app/scheduler.cxx
+++ b/vcl/source/app/scheduler.cxx
@@ -130,7 +130,7 @@ void Scheduler::ImplDeInitScheduler()
#endif
rSchedCtx.mbActive = false;
- assert( nullptr == rSchedCtx.mpSchedulerStack );
+ assert( nullptr == rSchedCtx.mpSchedulerStack || (!rSchedCtx.mpSchedulerStack->mpTask && !rSchedCtx.mpSchedulerStack->mpNext) );
if (rSchedCtx.mpSalTimer) rSchedCtx.mpSalTimer->Stop();
delete rSchedCtx.mpSalTimer;