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

AsyncUpdater: Cancel updates in derived class destructors

This commit is contained in:
reuk 2021-10-20 20:25:07 +01:00
parent 068dffdb8c
commit 3fa38114d1
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11
2 changed files with 2 additions and 0 deletions

View file

@ -86,6 +86,7 @@ private:
{
public:
ChangeBroadcasterCallback();
~ChangeBroadcasterCallback() override { cancelPendingUpdate(); }
void handleAsyncUpdate() override;
ChangeBroadcaster* owner;

View file

@ -38,6 +38,7 @@ public:
~TimerThread() override
{
cancelPendingUpdate();
signalThreadShouldExit();
callbackArrived.signal();
stopThread (4000);