Skip to content

Commit

Permalink
set status to 0 for offline
Browse files Browse the repository at this point in the history
  • Loading branch information
bryangerlach committed Sep 13, 2023
1 parent 1ed92a4 commit fdc7475
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/rendezvous_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -789,8 +789,10 @@ impl RendezvousServer {
let bit_idx = 7 - i % 8;
if elapsed < REG_TIMEOUT {
states[states_idx] |= 0x01 << bit_idx;
self.pm.update_status(peer_id, &states[states_idx]).await;
} else {
self.pm.update_status(peer_id, &0).await;
}
self.pm.update_status(peer_id, &states[states_idx]).await;
} else {
self.pm.update_status(peer_id, &0).await;
}
Expand Down

0 comments on commit fdc7475

Please sign in to comment.