By default make offline

This commit is contained in:
Vladislav Khorev committed 2026-01-18 13:18:59 +03:00
1 parent 1a7e424085
commit 67c0696061
6 files changed
+20 -17

No files matched your search

+3 -3
View File
@@ -1,4 +1,4 @@
#include <boost/beast/core.hpp>
#include <boost/beast/core.hpp>
#include <boost/beast/websocket.hpp>
#include <boost/asio/ip/tcp.hpp>
#include <iostream>
@@ -12,7 +12,7 @@
#include <math.h>
#include "../src/network/ClientState.h"
// Âñïîìîãàòåëüíûé split
// Вспомогательный split
std::vector<std::string> split(const std::string& s, char delimiter) {
std::vector<std::string> tokens;
std::string token;
@@ -78,7 +78,7 @@ class Session : public std::enable_shared_from_this<Session> {
std::lock_guard<std::mutex> lock(g_sessions_mutex);
for (auto& session : g_sessions) {
if (session->get_id() != id_) { // Íå øëåì îòïðàâèòåëþ
if (session->get_id() != id_) { // Не шлем отправителю
session->send_message(event_msg);
}
}