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

ConnectedChildProcess: Always cancel pending async updates before background thread stops

This commit is contained in:
reuk 2022-05-11 20:05:58 +01:00
parent 5b58f1c61e
commit 7dd0cffe71
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11

View file

@ -61,6 +61,8 @@ struct ChildProcessPingThread : public Thread,
int timeoutMs;
using AsyncUpdater::cancelPendingUpdate;
private:
Atomic<int> countdown;
@ -97,6 +99,7 @@ struct ChildProcessCoordinator::Connection : public InterprocessConnection,
~Connection() override
{
cancelPendingUpdate();
stopThread (10000);
}
@ -206,6 +209,7 @@ struct ChildProcessWorker::Connection : public InterprocessConnection,
~Connection() override
{
cancelPendingUpdate();
stopThread (10000);
disconnect();
}