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