diff options
Diffstat (limited to 'dom/cache/CacheStorageChild.cpp')
-rw-r--r-- | dom/cache/CacheStorageChild.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dom/cache/CacheStorageChild.cpp b/dom/cache/CacheStorageChild.cpp index e7918bbf88..e344e2c272 100644 --- a/dom/cache/CacheStorageChild.cpp +++ b/dom/cache/CacheStorageChild.cpp @@ -88,7 +88,7 @@ void CacheStorageChild::NoteDeletedActor() { // when StartDestroy was called from WorkerRef notification. If the last // CacheOpChild is getting destructed; it's the time for us to SendTearDown to // the other side. - if (NumChildActors() == 1 && mDelayedDestroy) DestroyInternal(); + if (NumChildActors() == 0 && mDelayedDestroy) DestroyInternal(); } void CacheStorageChild::ActorDestroy(ActorDestroyReason aReason) { |