Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/Simple-WebSocket-Server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreidheim <eidheim@gmail.com>2020-02-14 11:12:41 +0300
committereidheim <eidheim@gmail.com>2020-02-14 11:12:41 +0300
commitc2ba9eae02806135087b9865ee4767ee738b36b4 (patch)
tree1467b6ff9e17154a4866b9d383333b36ef8666a8
parent9a699e198b2418c4c9c267882752ba82cc7ad5c5 (diff)
Related to #139: reverted Server::get_connections() empty check, since the issue was related to connection lifetime in issue author's code
-rw-r--r--server_ws.hpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/server_ws.hpp b/server_ws.hpp
index bc55781..96205dc 100644
--- a/server_ws.hpp
+++ b/server_ws.hpp
@@ -458,8 +458,7 @@ namespace SimpleWeb {
std::unordered_set<std::shared_ptr<Connection>> all_connections;
for(auto &e : endpoint) {
LockGuard lock(e.second.connections_mutex);
- if(!e.second.connections.empty())
- all_connections.insert(e.second.connections.begin(), e.second.connections.end());
+ all_connections.insert(e.second.connections.begin(), e.second.connections.end());
}
return all_connections;
}