fix: double watch bug
This commit is contained in:
@@ -551,7 +551,7 @@ async fn handle_connection(
|
|||||||
match match_id_parse {
|
match match_id_parse {
|
||||||
Ok(match_id) => {
|
Ok(match_id) => {
|
||||||
let result = watch(&matches, match_id, addr).await;
|
let result = watch(&matches, match_id, addr).await;
|
||||||
if result.is_err() { let _ = send(&tx, "ERROR:INVALID:WATCH"); }
|
if result.is_err() { let _ = send(&tx, "ERROR:INVALID:WATCH"); continue; }
|
||||||
|
|
||||||
let clients_guard = clients.read().await;
|
let clients_guard = clients.read().await;
|
||||||
let matches_guard = matches.read().await;
|
let matches_guard = matches.read().await;
|
||||||
|
|||||||
Reference in New Issue
Block a user