From f9bc83811c273aa80c02266b966fe514477e0f5d Mon Sep 17 00:00:00 2001 From: Green Sky Date: Thu, 10 Aug 2023 01:32:24 +0200 Subject: [PATCH] properly handle broken info --- src/states/receive_start_sha1.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/states/receive_start_sha1.cpp b/src/states/receive_start_sha1.cpp index 10c0fa6..30922a1 100644 --- a/src/states/receive_start_sha1.cpp +++ b/src/states/receive_start_sha1.cpp @@ -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"; _transfer.reset(); _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; } }