mirror of
https://github.com/wownero/wownero.git
synced 2026-11-15 21:03:53 +01:00
foreach_connection() can race with connection destruction while the protocol handler remains in the raw-pointer map. Use the non-throwing weak_from_this().lock() in add_ref() and treat expired connections as unavailable. This is an interim mitigation pending the broader connection lifetime fix in PR 7345. (cherry picked from commit 146f801063b85e23b635c235100cc241e4ab626a)