mirror of
https://git.ngram.ca/OpenJam/rc-servers
synced 2026-08-23 23:08:52 +00:00
Add network-layer multiplayer disconnect handling
This commit is contained in:
1 parent
1d0831d307
commit
ac9e2a9fcd
10 files changed
+64
-18
No files matched your search
@@ -22,6 +22,7 @@ impl crate::handlers::DatalessEventCodeHandler for ClientUnregisterer {
|
||||
if let Some(user_info) = user.user().await {
|
||||
super::log_channel_send_failure(self.msg_router.send(crate::matches::GameMessage::EndConnection {
|
||||
user_id: user_info.user_id(),
|
||||
is_unregister: true,
|
||||
}).await);
|
||||
} else {
|
||||
log::error!("Failed to handle sync loading request for unknown user");
|
||||
|
||||
@@ -19,7 +19,11 @@ mod player_leave;
|
||||
mod heal_assist_bonus;
|
||||
|
||||
pub async fn handler(init_ctx: &crate::InitConfig) -> crate::handler::LnlEventHandler {
|
||||
crate::handler::LnlEventHandler::new(init_ctx.users.clone(), crate::vehicle_motion::handler(init_ctx))
|
||||
crate::handler::LnlEventHandler::new(
|
||||
init_ctx.users.clone(),
|
||||
crate::vehicle_motion::handler(init_ctx),
|
||||
crate::disconnect::handler(init_ctx),
|
||||
)
|
||||
.add(validate_game_guid::handler(init_ctx))
|
||||
.add(loading_progress::handler(init_ctx))
|
||||
.add(all_loading_progress::handler(init_ctx))
|
||||
|
||||
Reference in new issue
Block a user