File tree Expand file tree Collapse file tree
sources/include/protocol_session/detail Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33
44class ProtocolSessionBase (ConanFile ):
55 name = "ProtocolSession"
6- version = "0.1.2 "
6+ version = "0.1.3 "
77 license = "(c) JoyStream Inc. 2016-2017"
88 url = "https://github.com/JoyStream/protocol_session-conan.git"
99 git_repo = "git@github.com:JoyStream/protocol_session-cpp.git"
Original file line number Diff line number Diff line change @@ -609,11 +609,13 @@ namespace detail {
609609
610610 detail::Seller<ConnectionIdType> & s = itr->second ;
611611
612- // Seller can't be gone
613- assert (s.state () != SellerState::gone);
614-
615- // Remove
616- removeSeller (s);
612+ // It is possible to find a seller in the "gone" state that we have previoulsy removed.
613+ // This happens when the connection times out and is later re-establish. The connection will have the
614+ // same connection id (because it is the same peer)
615+ if (s.state () != SellerState::gone) {
616+ // Remove
617+ removeSeller (s);
618+ }
617619 }
618620
619621 // Destroy connection - important todo before notifying client
You can’t perform that action at this time.
0 commit comments