1
0
Fork 0
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:
jules 2013-03-21 09:50:16 +00:00
parent 79f9874f59
commit a77a671f88

View file

@ -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;
}
}
}
}