mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Workaround for mysterious timer message loss on linux.
This commit is contained in:
parent
79f9874f59
commit
a77a671f88
1 changed files with 4 additions and 1 deletions
|
|
@ -83,7 +83,7 @@ public:
|
|||
when the app has a modal loop), so this is how long to wait before assuming the
|
||||
message has been lost and trying again.
|
||||
*/
|
||||
const uint32 messageDeliveryTimeout = now + 2000;
|
||||
const uint32 messageDeliveryTimeout = now + 300;
|
||||
|
||||
while (callbackNeeded.get() != 0)
|
||||
{
|
||||
|
|
@ -93,7 +93,10 @@ public:
|
|||
return;
|
||||
|
||||
if (Time::getMillisecondCounter() > messageDeliveryTimeout)
|
||||
{
|
||||
messageToSend->post();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue