Skip to content

Commit

Permalink
Add run_callbacks to networking_sockets
Browse files Browse the repository at this point in the history
  • Loading branch information
kristoff3r committed Nov 29, 2023
1 parent de970df commit e9f7d2f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/networking_sockets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -930,6 +930,10 @@ impl<Manager: 'static> NetConnection<Manager> {
debug_assert!(was_successful);
}

pub fn run_callbacks(&self) {
unsafe { sys::SteamAPI_ISteamNetworkingSockets_RunCallbacks(self.sockets) }
}

/// Set the connection state to be handled externally. The struct will no longer close the connection on drop.
pub(crate) fn handle_connection(&mut self) {
self.is_handled = true
Expand Down

0 comments on commit e9f7d2f

Please sign in to comment.