Add delay to p2p session request callback to fix aoe2hd.
parent
8daa896c86
commit
1717323cd7
|
@ -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());
|
||||||
|
|
Loading…
Reference in New Issue