Skip to content

Commit

Permalink
initial sync is now on request mode
Browse files Browse the repository at this point in the history
  • Loading branch information
raffaeleragni committed Jun 23, 2024
1 parent 5e4bb14 commit 2b96cab
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/server/receiver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,8 @@ fn server_received_a_message(
next_promotion_state.set(PromotionState::PromotedToClient);
}
Message::RequestInitialSync => {
if promotion_state.eq(&PromotionState::NeverPromoted) {
debug!("Sending initial sync to client id: {}", client_id);
cmd.add(move |world: &mut World| send_initial_sync(client_id, world));
}
debug!("Sending initial sync to client id: {}", client_id);
cmd.add(move |world: &mut World| send_initial_sync(client_id, world));
}
}
}
Expand Down

0 comments on commit 2b96cab

Please sign in to comment.