diff --git a/dom/bluetooth/BluetoothOppManager.cpp b/dom/bluetooth/BluetoothOppManager.cpp index a14eff95357b..9b535da414ad 100644 --- a/dom/bluetooth/BluetoothOppManager.cpp +++ b/dom/bluetooth/BluetoothOppManager.cpp @@ -467,6 +467,7 @@ BluetoothOppManager::AfterOppDisconnected() mConnected = false; mLastCommand = 0; mBlob = nullptr; + mPacketLeftLength = 0; // We can't reset mSuccessFlag here since this function may be called // before we send system message of transfer complete