1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2024-11-22 13:29:21 +00:00

Fix logic issue

This commit is contained in:
Pierre HUBERT 2022-03-12 08:15:52 +01:00
parent 366d9ee25c
commit 91d52695d7

View File

@ -141,7 +141,7 @@ pub async fn join_call(r: &mut UserWsRequestHandler) -> RequestResult {
// Remove any other active connection to current call of current user // Remove any other active connection to current call of current user
for conn in user_ws_controller::get_all_connections()? { for conn in user_ws_controller::get_all_connections()? {
if conn.user_id() != r.user_id_ref()? || conn.session.eq(&r.get_conn().session) { if conn.user_id() != r.user_id_ref()? || conn.session.eq(&r.get_conn().session) {
return Ok(()); continue;
} }
if let Some(call) = &conn.active_call { if let Some(call) = &conn.active_call {