Skip to content

Commit

Permalink
that should do it
Browse files Browse the repository at this point in the history
  • Loading branch information
zwazel authored and msvbg committed May 28, 2024
1 parent 499a005 commit 54278d1
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions lightyear/src/connection/steam/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,17 +124,19 @@ impl NetClient for Client {
virtual_port,
steam_id,
} => {
self.steamworks_client
.read()
.expect("could not get steamworks client")
.get_client()
.networking_sockets()
.connect_p2p(
NetworkingIdentity::new_steam_id(SteamId::from_raw(steam_id)),
virtual_port,
vec![],
)
.context("failed to create p2p connection")?;
self.connection = Some(
self.steamworks_client
.read()
.expect("could not get steamworks client")
.get_client()
.networking_sockets()
.connect_p2p(
NetworkingIdentity::new_steam_id(SteamId::from_raw(steam_id)),
virtual_port,
vec![],
)
.context("failed to create p2p connection")?,
);
}
}
Ok(())
Expand Down

0 comments on commit 54278d1

Please sign in to comment.