summaryrefslogtreecommitdiff
path: root/vcl/osx/salinst.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2023-09-10 16:19:59 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-09-10 18:07:50 +0200
commita1174a5f1e312ebb98c3941d35287a8ffcb368e9 (patch)
tree7441897ad9324a40f697a09b2f178319a09780d1 /vcl/osx/salinst.cxx
parent0db4cad99ff3746cc39f106a32bf2642628e336b (diff)
attempt to fix macos jenkins hangs
I see sporadic hangs, and the backtrace indicates that the process is locked up inside _nextEventMatchingEventMask. Try an alternative formulation of this method. Change-Id: Id8d7631bb0421cfb3c91a673ea14c0fe458c6f28 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156794 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/osx/salinst.cxx')
-rw-r--r--vcl/osx/salinst.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/osx/salinst.cxx b/vcl/osx/salinst.cxx
index 446bb32ae910..645e82b0b59c 100644
--- a/vcl/osx/salinst.cxx
+++ b/vcl/osx/salinst.cxx
@@ -594,7 +594,7 @@ bool AquaSalInstance::DoYield(bool bWait, bool bHandleAllCurrentEvents)
SolarMutexReleaser aReleaser;
pEvent = [NSApp nextEventMatchingMask: NSEventMaskAny
- untilDate: nil
+ untilDate: [NSDate distantPast]
inMode: NSDefaultRunLoopMode
dequeue: YES];
if( pEvent )