Skip to content

Commit 9a65a3c

Browse files
committed
fix: prevent sending additional updates
1 parent 1fc2d88 commit 9a65a3c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/teams_ws/api.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,8 @@ async fn parse_data_and_notify_listener(
168168
let result = listener.lock().unwrap().notify_changed(&teams_states).await;
169169

170170
if result.is_ok() || (i == MAX_RETRIES) {
171-
result?
171+
result?;
172+
break;
172173
}
173174
// we will try to reconnect if the connection failed
174175
else if i < MAX_RETRIES {

0 commit comments

Comments
 (0)