Add delay to p2p session request callback to fix aoe2hd.

merge-requests/6/head
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
1 changed files with 1 additions and 1 deletions

View File

@ -748,7 +748,7 @@ void RunCallbacks()
P2PSessionRequest_t data; P2PSessionRequest_t data;
memset(&data, 0, sizeof(data)); memset(&data, 0, sizeof(data));
data.m_steamIDRemote = CSteamID(source_id); 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 { } else {
struct Steam_Networking_Connection *conn = get_or_create_connection(source_id); struct Steam_Networking_Connection *conn = get_or_create_connection(source_id);
conn->open_channels.insert(msg.network().channel()); conn->open_channels.insert(msg.network().channel());