diff options
author | dec05eba <0xdec05eba@gmail.com> | 2018-10-14 06:05:09 +0200 |
---|---|---|
committer | dec05eba <0xdec05eba@gmail.com> | 2018-10-14 06:05:12 +0200 |
commit | efc7311893b0fb25129eb2b715992ba2ac43d65c (patch) | |
tree | d623dfe299f3ae1afec8238be09b5cd0542af7e1 /include/sibs/BootstrapNode.hpp | |
parent | 55405854c27417ec33797c9e2b438ce17ac70bf2 (diff) |
Removed user from subscriptions on disconnect
Diffstat (limited to 'include/sibs/BootstrapNode.hpp')
-rw-r--r-- | include/sibs/BootstrapNode.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sibs/BootstrapNode.hpp b/include/sibs/BootstrapNode.hpp index 48e527c..ab3d6b3 100644 --- a/include/sibs/BootstrapNode.hpp +++ b/include/sibs/BootstrapNode.hpp @@ -4,6 +4,7 @@ #include "IpAddress.hpp" #include "PubsubKey.hpp" #include <vector> +#include <mutex> namespace sibs { @@ -28,5 +29,6 @@ namespace sibs int socket; std::thread acceptConnectionsThread; PubsubKeyMap<std::vector<std::shared_ptr<DirectConnectionPeer>>> subscribedPeers; + std::mutex subscribedPeersMutex; }; } |