diff --git a/src/electron/ELECTRON_VERSION b/src/electron/ELECTRON_VERSION index 63bd139..82fe99f 100644 --- a/src/electron/ELECTRON_VERSION +++ b/src/electron/ELECTRON_VERSION @@ -1 +1 @@ -20.3.0-rc18 +20.3.0-rc19 diff --git a/src/electron/office/office_client.cc b/src/electron/office/office_client.cc index f9a557f..cb70065 100644 --- a/src/electron/office/office_client.cc +++ b/src/electron/office/office_client.cc @@ -56,9 +56,6 @@ v8::Local OfficeClient::GetHandle(v8::Isolate* isolate) { return self_.Get(isolate); } -// static -base::AtomicRefCount g_client_counter{0}; - // instance namespace { static void GetOfficeHandle(v8::Local name, @@ -98,7 +95,6 @@ void OfficeClient::InstallToContext(v8::Local context) { } client->self_.Reset(isolate, wrapper); lazy_tls->Set(std::move(client)); - g_client_counter.Increment(); context->Global() ->SetAccessor( @@ -118,10 +114,6 @@ void OfficeClient::RemoveFromContext(v8::Local /*context*/) { if (lazy_tls->Get()) lazy_tls->Get()->Unset(); lazy_tls->Set(nullptr); - - if (!g_client_counter.Decrement()) { - OfficeInstance::Unset(); - } } OfficeClient::OfficeClient()