Index: third_party/WebKit/Source/modules/webaudio/AudioWorklet.cpp |
diff --git a/third_party/WebKit/Source/modules/webaudio/AudioWorklet.cpp b/third_party/WebKit/Source/modules/webaudio/AudioWorklet.cpp |
index 4405c059f5d404945f26cbb4cda162f21ebd6427..df531517d4c0443cf9c3dfcf40f08d4307d5ec0b 100644 |
--- a/third_party/WebKit/Source/modules/webaudio/AudioWorklet.cpp |
+++ b/third_party/WebKit/Source/modules/webaudio/AudioWorklet.cpp |
@@ -35,10 +35,12 @@ void AudioWorklet::Initialize() { |
worklet_messaging_proxy_ = |
new AudioWorkletMessagingProxy(GetExecutionContext(), worker_clients); |
worklet_messaging_proxy_->Initialize(); |
+ |
+ is_initialized_ = true; |
} |
bool AudioWorklet::IsInitialized() const { |
- return worklet_messaging_proxy_; |
+ return is_initialized_; |
} |
WorkletGlobalScopeProxy* AudioWorklet::GetWorkletGlobalScopeProxy() const { |