Bug 899711 - Notify file change after receiving an one-packet-size file, r=gyeh
authorEric Chou <echou@mozilla.com>
Thu, 01 Aug 2013 12:32:18 +0800
changeset 153369 c30bb64eef451c957f12dd330a4861215536e8a2
parent 153368 7b639a0f96886fb71c65c582ff8ba196e65670bb
child 153370 78d3896e18d5e862f3c79660dd1db2b685bb75b5
push id2859
push userakeybl@mozilla.com
push dateMon, 16 Sep 2013 19:14:59 +0000
treeherdermozilla-beta@87d3c51cd2bf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgyeh
bugs899711
milestone25.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 899711 - Notify file change after receiving an one-packet-size file, r=gyeh
dom/bluetooth/BluetoothOppManager.cpp
--- a/dom/bluetooth/BluetoothOppManager.cpp
+++ b/dom/bluetooth/BluetoothOppManager.cpp
@@ -408,16 +408,17 @@ BluetoothOppManager::ConfirmReceivingFil
     if (CreateFile()) {
       success = WriteToFile(mBodySegment.get(), mBodySegmentLength);
     }
   }
 
   if (success && mPutFinalFlag) {
     mSuccessFlag = true;
     FileTransferComplete();
+    NotifyAboutFileChange();
   }
 
   ReplyToPut(mPutFinalFlag, success);
   return true;
 }
 
 void
 BluetoothOppManager::AfterFirstPut()