only let hosts see their own joins and let all other players not see their own joins
This commit is contained in:
parent
09e5b1f92a
commit
7ff0950617
1 changed files with 7 additions and 4 deletions
|
|
@ -240,6 +240,9 @@ impl ExtendedMatchmakeSession {
|
||||||
} */
|
} */
|
||||||
|
|
||||||
for pid in &list_of_connected_pids {
|
for pid in &list_of_connected_pids {
|
||||||
|
if other_conn.pid != self.session.gathering.host_pid && other_conn.pid == *pid {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
other_conn
|
other_conn
|
||||||
.remote
|
.remote
|
||||||
.process_notification_event(NotificationEvent {
|
.process_notification_event(NotificationEvent {
|
||||||
|
|
@ -258,11 +261,11 @@ impl ExtendedMatchmakeSession {
|
||||||
let Some(old_conns) = old_conns.upgrade() else {
|
let Some(old_conns) = old_conns.upgrade() else {
|
||||||
continue;
|
continue;
|
||||||
};
|
};
|
||||||
/*
|
|
||||||
if old_conns.pid != self.session.gathering.host_pid {
|
|
||||||
continue;
|
|
||||||
} */
|
|
||||||
for new_conn_pid in conns.iter().filter_map(Weak::upgrade).map(|c| c.pid) {
|
for new_conn_pid in conns.iter().filter_map(Weak::upgrade).map(|c| c.pid) {
|
||||||
|
if old_conns.pid != self.session.gathering.host_pid && old_conns.pid == new_conn_pid
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
old_conns
|
old_conns
|
||||||
.remote
|
.remote
|
||||||
.process_notification_event(NotificationEvent {
|
.process_notification_event(NotificationEvent {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue