We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 803de0e + bc53de1 commit 60b7dbcCopy full SHA for 60b7dbc
Source/WebCore/Modules/webaudio/OfflineAudioDestinationNode.cpp
@@ -86,10 +86,6 @@ void OfflineAudioDestinationNode::uninitialize()
86
return;
87
88
if (m_startedRendering) {
89
- if (m_renderThread) {
90
- m_renderThread->waitForCompletion();
91
- m_renderThread = nullptr;
92
- }
93
if (auto* workletProxy = context().audioWorklet().proxy()) {
94
BinarySemaphore semaphore;
95
workletProxy->postTaskForModeToWorkletGlobalScope([&semaphore](ScriptExecutionContext&) mutable {
@@ -99,6 +95,11 @@ void OfflineAudioDestinationNode::uninitialize()
99
}
100
96
101
97
98
+ if (m_renderThread) {
+ m_renderThread->waitForCompletion();
+ m_renderThread = nullptr;
+ }
102
+
103
AudioNode::uninitialize();
104
105
0 commit comments