1
0
Fork 0
mirror of https://gitlab.com/Mr_Goldberg/goldberg_emulator.git synced 2024-11-14 10:50:13 +01:00

Add delay to p2p session request callback to fix aoe2hd.

This commit is contained in:
Mr_Goldberg 2019-05-17 14:15:12 -04:00
parent 8daa896c86
commit 1717323cd7
No known key found for this signature in database
GPG key ID: 8597D87419DEF278

View file

@ -748,7 +748,7 @@ void RunCallbacks()
P2PSessionRequest_t data;
memset(&data, 0, sizeof(data));
data.m_steamIDRemote = CSteamID(source_id);
callbacks->addCBResult(data.k_iCallback, &data, sizeof(data), true);
callbacks->addCBResult(data.k_iCallback, &data, sizeof(data), 0.1, true);
} else {
struct Steam_Networking_Connection *conn = get_or_create_connection(source_id);
conn->open_channels.insert(msg.network().channel());