mirror of
https://github.com/kunkundi/crossdesk-server.git
synced 2026-03-22 15:47:55 +08:00
Fix log error when user id binds to websocket handle
This commit is contained in:
@@ -87,7 +87,8 @@ bool TransmissionManager::BindPasswordToTransmission(
|
||||
bool TransmissionManager::BindUserIdToWsHandle(
|
||||
const std::string& user_id, websocketpp::connection_hdl hdl) {
|
||||
if (user_id_ws_hdl_list_.find(user_id) != user_id_ws_hdl_list_.end()) {
|
||||
LOG_WARN("User id already bind to websocket handle [{}]", user_id,
|
||||
LOG_WARN("User id [{}] already bind to websocket handle [{} | now {}]",
|
||||
user_id, user_id_ws_hdl_list_[user_id].lock().get(),
|
||||
hdl.lock().get());
|
||||
return false;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user