mirror of
https://github.com/ratspeak/microReticulum
synced 2026-11-27 13:52:14 +00:00
Merge pull request #20 from DanBeard/fix/bytes-and-transport-bugs
Fix receipt cull logic and bytes edge case.
This commit is contained in:
3 files changed
+495
-8
No files matched your search
+4
-4
@@ -318,8 +318,8 @@ using namespace RNS::Utilities;
|
||||
}
|
||||
}
|
||||
// CBA since modifying of collection while iterating is forbidden
|
||||
for (auto& receipt : _receipts) {
|
||||
cull_receipts.remove(receipt);
|
||||
for (auto& receipt : cull_receipts) {
|
||||
_receipts.remove(receipt);
|
||||
}
|
||||
|
||||
_receipts_last_checked = OS::time();
|
||||
@@ -2288,8 +2288,8 @@ using namespace RNS::Utilities;
|
||||
}
|
||||
}
|
||||
// CBA since modifying of collection while iterating is forbidden
|
||||
for (auto& receipt : _receipts) {
|
||||
cull_receipts.remove(receipt);
|
||||
for (auto& receipt : cull_receipts) {
|
||||
_receipts.remove(receipt);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user