properly handle broken info
This commit is contained in:
parent
5c4bb1aa42
commit
f9bc83811c
@ -176,10 +176,10 @@ void ReceiveStartSHA1::onFT1ReceiveDataSHA1Info(uint32_t group_number, uint32_t
|
|||||||
std::cerr << "ReceiveStartSHA1 received info's hash does not match!, discarding\n";
|
std::cerr << "ReceiveStartSHA1 received info's hash does not match!, discarding\n";
|
||||||
_transfer.reset();
|
_transfer.reset();
|
||||||
_sha1_info_data.clear();
|
_sha1_info_data.clear();
|
||||||
|
} else {
|
||||||
|
std::cout << "ReceiveStartSHA1 info tansfer finished " << group_number << ":" << peer_number << "." << int(transfer_id) << "\n";
|
||||||
|
_done = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::cout << "ReceiveStartSHA1 info tansfer finished " << group_number << ":" << peer_number << "." << int(transfer_id) << "\n";
|
|
||||||
_done = true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user