diff --git a/solanaceae/tox_messages/tox_transfer_manager.cpp b/solanaceae/tox_messages/tox_transfer_manager.cpp index 14f25cc..d691557 100644 --- a/solanaceae/tox_messages/tox_transfer_manager.cpp +++ b/solanaceae/tox_messages/tox_transfer_manager.cpp @@ -513,7 +513,7 @@ bool ToxTransferManager::onToxEvent(const Tox_Event_File_Recv_Chunk* e) { transfer.emplace(); // re-unread a finished transfer - transfer.emplace(); + transfer.emplace_or_replace(); _rmm.throwEventUpdate(transfer); } else if (!transfer.all_of() || !transfer.get()->isGood()) {