yet another another attempt
This commit is contained in:
parent
757ca292b9
commit
9fdca492c4
1 changed files with 24 additions and 1 deletions
|
|
@ -246,13 +246,36 @@ impl ExtendedMatchmakeSession {
|
||||||
pid_source: initiating_pid,
|
pid_source: initiating_pid,
|
||||||
notif_type: 3001,
|
notif_type: 3001,
|
||||||
param_1: self.session.gathering.self_gid as PID,
|
param_1: self.session.gathering.self_gid as PID,
|
||||||
param_2: other_conn.pid,
|
param_2: *pid,
|
||||||
str_param: join_msg.clone(),
|
str_param: join_msg.clone(),
|
||||||
param_3: self.connected_players.len() as _,
|
param_3: self.connected_players.len() as _,
|
||||||
})
|
})
|
||||||
.await;
|
.await;
|
||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
|
for other_connection in conns {
|
||||||
|
let Some(other_conn) = other_connection.upgrade() else {
|
||||||
|
continue;
|
||||||
|
};
|
||||||
|
|
||||||
|
for old_participant in &old_particip {
|
||||||
|
let Some(old_particip) = old_participant.upgrade() else {
|
||||||
|
continue;
|
||||||
|
};
|
||||||
|
|
||||||
|
other_conn
|
||||||
|
.remote
|
||||||
|
.process_notification_event(NotificationEvent {
|
||||||
|
pid_source: initiating_pid,
|
||||||
|
notif_type: 3001,
|
||||||
|
param_1: self.session.gathering.self_gid as PID,
|
||||||
|
param_2: old_particip.pid,
|
||||||
|
str_param: join_msg.clone(),
|
||||||
|
param_3: self.connected_players.len() as _,
|
||||||
|
})
|
||||||
|
.await;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
for old_conns in &old_particip {
|
for old_conns in &old_particip {
|
||||||
let Some(old_conns) = old_conns.upgrade() else {
|
let Some(old_conns) = old_conns.upgrade() else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue