1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Fix for changing the OSX HighResolutionTimer interval while it's still running.

This commit is contained in:
jules 2014-07-09 18:16:48 +01:00
parent ae0383c7db
commit 13f99df268

View file

@ -1150,10 +1150,11 @@ struct HighResolutionTimer::Pimpl
void start (int newPeriod)
{
periodMs = newPeriod;
if (thread == 0)
if (periodMs != newPeriod)
{
stop();
periodMs = newPeriod;
shouldStop = false;
if (pthread_create (&thread, nullptr, timerThread, this) == 0)