From 32dd00b93faca5c0f9e470df08c350c5a04e8b39 Mon Sep 17 00:00:00 2001 From: Arun Sojan Parolikkal Date: Tue, 28 Nov 2023 10:44:26 +0530 Subject: [PATCH] fetch next game data if tid changes --- overlay/src/network.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/overlay/src/network.rs b/overlay/src/network.rs index c1dc61a8..bedeaf1a 100644 --- a/overlay/src/network.rs +++ b/overlay/src/network.rs @@ -370,7 +370,7 @@ pub async fn networking_thread( .unwrap_or_else(|e| error!("Frontend could not recieve snapshot!: {e}")); } else { info!( - "Fetching game data for tid: {}, gid: {}. Cache is empty or invalid!", + "Fetching game data for tid: {}, gid: {}. Cache is empty!", tid, gid, ); tokio::spawn(async move { @@ -384,11 +384,11 @@ pub async fn networking_thread( info!("Tournament id changed without a change in gid"); *tournament_id_inner = tid; info!( - "Fetching game data for tid: {}, gid: {} on tournament ID change!", + "Fetching game data to cache for tid: {}, gid: {} on tournament ID change!", tid, gid, ); tokio::spawn(async move { - fetch_game_data(tr_, &uwhscores_url, &uwhportal_url, tid, gid, true).await; + fetch_game_data(tr_, &uwhscores_url, &uwhportal_url, tid, gid, false).await; }); } }