Skip to content

Commit

Permalink
little changes in lan_server_list i forgot to do in previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ymo-4 committed Jul 25, 2024
1 parent 2e12e5a commit 86f8406
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/matchmaking_servers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -483,22 +483,22 @@ impl<Manager> MatchmakingServers<Manager> {

let callbacks = create_serverlist(callbacks);

let arc = Arc::clone(&(*(*callbacks).rust_callbacks).req);
let mut req = arc.lock().unwrap();
let request_arc = ServerListRequest::get(callbacks);
let mut request = request_arc.lock().unwrap();

let handle = sys::SteamAPI_ISteamMatchmakingServers_RequestLANServerList(
self.mms,
app_id,
callbacks.cast(),
);

req.mms = self.mms;
req.real = callbacks;
req.h_req = handle;
request.mms = self.mms;
request.real = callbacks;
request.h_req = handle;

drop(req);
drop(request);

arc
request_arc
}
}

Expand Down

0 comments on commit 86f8406

Please sign in to comment.