remeber the first sending transfer that could not send any packets and start there next iterate

This commit is contained in:
2023-09-01 23:20:03 +02:00
parent ba8befbb2d
commit 070585ab3d
2 changed files with 12 additions and 2 deletions

View File

@@ -188,6 +188,7 @@ class NGCFT1 : public ToxEventI, public NGCEXTEventI, public NGCFT1EventProvider
};
std::array<std::optional<SendTransfer>, 256> send_transfers;
size_t next_send_transfer_idx {0}; // next id will be 0
size_t next_send_transfer_send_idx {0};
};
std::map<uint32_t, Peer> peers;
};