Bug 1205177 - call fileHandleQueue->Finish if aFinish in FileHandleThreadPool::Enqueue. r=janv
authorBogdan Postelnicu <bogdan.postelnicu@softvision.ro>
Thu, 11 Feb 2016 19:07:16 +0200
changeset 331329 9a7112d0fae45e2812b16e7c792127ed5e491077
parent 331328 b09f22c69916b7847306ec8757dc4ca14e5f560f
child 331330 8e7ae3dc738782436cf0886f0d84768843da849c
push id10956
push userjolesen@mozilla.com
push dateTue, 16 Feb 2016 19:12:12 +0000
reviewersjanv
bugs1205177
milestone47.0a1
Bug 1205177 - call fileHandleQueue->Finish if aFinish in FileHandleThreadPool::Enqueue. r=janv MozReview-Commit-ID: H2CYKsDdPRL
dom/filehandle/ActorsParent.cpp
--- a/dom/filehandle/ActorsParent.cpp
+++ b/dom/filehandle/ActorsParent.cpp
@@ -892,17 +892,17 @@ FileHandleThreadPool::Enqueue(FileHandle
   }
   else {
     FileHandleQueue* fileHandleQueue =
       directoryInfo->CreateFileHandleQueue(aFileHandle);
 
     if (aFileHandleOp) {
       fileHandleQueue->Enqueue(aFileHandleOp);
       if (aFinish) {
-        existingFileHandleQueue->Finish();
+        fileHandleQueue->Finish();
       }
     }
   }
 }
 
 void
 FileHandleThreadPool::WaitForDirectoriesToComplete(
                                              nsTArray<nsCString>&& aDirectoryIds,