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:
parent
5b58f1c61e
commit
7dd0cffe71
1 changed files with 4 additions and 0 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue