mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 871438 - Reset value when file transfer session starts, r=gyeh
When the transferring session was stopped, mBodySegmentLength wouldn't reset to 0, and that would impact the next transferring if the first packet of the next transferring doesn't contain header Body or EndOfBody, which would invoke ExtractPacketHeaders() and refresh mBodySegmentLength in the function.
This commit is contained in:
parent
235a433fa5
commit
4d7f9db013
@ -439,6 +439,7 @@ BluetoothOppManager::AfterFirstPut()
|
||||
sSentFileLength = 0;
|
||||
sWaitingToSendPutFinal = false;
|
||||
mSuccessFlag = false;
|
||||
mBodySegmentLength = 0;
|
||||
}
|
||||
|
||||
void
|
||||
@ -771,7 +772,7 @@ BluetoothOppManager::ServerDataHandler(UnixSocketRawData* aMessage)
|
||||
|
||||
// When we cancel the transfer, delete the file and notify complemention
|
||||
if (mAbortFlag) {
|
||||
ReplyToPut(mPutFinalFlag, !mAbortFlag);
|
||||
ReplyToPut(mPutFinalFlag, false);
|
||||
sSentFileLength += mBodySegmentLength;
|
||||
DeleteReceivedFile();
|
||||
FileTransferComplete();
|
||||
|
Loading…
Reference in New Issue
Block a user