Skip to content

Commit 9ffcee9

Browse files
authored
Merge pull request #18 from JoyStream/development
dev to master - v0.1.3
2 parents 17c426b + ce81ad5 commit 9ffcee9

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

conan_package/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
class 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"

sources/include/protocol_session/detail/Buying.cpp

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)