Skip to content

Commit

Permalink
Merge pull request #202 from Sigma-dev/master
Browse files Browse the repository at this point in the history
Added a return value to AcceptSessionWithUser
  • Loading branch information
Noxime authored Sep 9, 2024
2 parents 60f9535 + 3fba79e commit cfc3bf6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/networking_messages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,9 +292,9 @@ impl<Manager> SessionRequest<Manager> {
}

/// Accept the connection.
pub fn accept(self) {
pub fn accept(self) -> bool {
unsafe {
sys::SteamAPI_ISteamNetworkingMessages_AcceptSessionWithUser(
return sys::SteamAPI_ISteamNetworkingMessages_AcceptSessionWithUser(
self.messages,
self.remote.as_ptr(),
);
Expand Down

0 comments on commit cfc3bf6

Please sign in to comment.