add check for if host is in session to reachability check
All checks were successful
Build and Test / wii-u-chat (push) Successful in 2m5s
Build and Test / mario-tennis (push) Successful in 2m13s
Build and Test / minecraft-wiiu (push) Successful in 2m40s
Build and Test / splatoon (push) Successful in 3m16s
Build and Test / splatoon-testfire (push) Successful in 3m42s
Build and Test / wii-sports-club (push) Successful in 4m1s
Build and Test / fast-racing-neo (push) Successful in 4m16s
Build and Test / sonic-transformed (push) Successful in 4m48s
Build and Test / friends (push) Successful in 5m15s
Build and Test / puyopuyo (push) Successful in 5m38s
Build and Test / super-mario-maker (push) Successful in 6m43s
All checks were successful
Build and Test / wii-u-chat (push) Successful in 2m5s
Build and Test / mario-tennis (push) Successful in 2m13s
Build and Test / minecraft-wiiu (push) Successful in 2m40s
Build and Test / splatoon (push) Successful in 3m16s
Build and Test / splatoon-testfire (push) Successful in 3m42s
Build and Test / wii-sports-club (push) Successful in 4m1s
Build and Test / fast-racing-neo (push) Successful in 4m16s
Build and Test / sonic-transformed (push) Successful in 4m48s
Build and Test / friends (push) Successful in 5m15s
Build and Test / puyopuyo (push) Successful in 5m38s
Build and Test / super-mario-maker (push) Successful in 6m43s
This commit is contained in:
parent
aa9b863c38
commit
f552f9b03f
1 changed files with 11 additions and 8 deletions
|
|
@ -313,15 +313,18 @@ impl ExtendedMatchmakeSession {
|
|||
|
||||
#[inline]
|
||||
pub fn is_reachable(&self) -> bool {
|
||||
(if self.session.gathering.flags & PERSISTENT_GATHERING != 0 {
|
||||
if self.has_active_players() {
|
||||
true
|
||||
self.get_active_players()
|
||||
.iter()
|
||||
.any(|v| v.pid == self.session.gathering.host_pid)
|
||||
&& (if self.session.gathering.flags & PERSISTENT_GATHERING != 0 {
|
||||
if self.has_active_players() {
|
||||
true
|
||||
} else {
|
||||
self.session.open_participation
|
||||
}
|
||||
} else {
|
||||
self.session.open_participation
|
||||
}
|
||||
} else {
|
||||
self.has_active_players()
|
||||
}) & self.has_active_players()
|
||||
self.has_active_players()
|
||||
}) & self.has_active_players()
|
||||
}
|
||||
#[inline]
|
||||
pub fn is_joinable(&self) -> bool {
|
||||
|
|
|
|||
Loading…
Reference in a new issue