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:
-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;
}