Skip to content

Commit abc1f7d

Browse files
committed
chore: reset connection lost flag after server connection
1 parent ee3a66b commit abc1f7d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ws.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,9 @@ async fn ws_loop(
173173
};
174174

175175
{
176-
global_state.state.lock().await.server_connected = Some(true);
176+
let mut state = global_state.state.lock().await;
177+
state.server_connected = Some(true);
178+
state.wifi_conn_lost = false; // reset conn lost flag
177179
}
178180

179181
log::info!("connected!");

0 commit comments

Comments
 (0)