Added missing connection callback when accepting networking socket connection.

This commit is contained in:
Mr_Goldberg 2020-05-17 00:15:57 -04:00
parent 4ab508f7ef
commit 83fe490471
No known key found for this signature in database
GPG key ID: 8597D87419DEF278

View file

@ -406,6 +406,7 @@ EResult AcceptConnection( HSteamNetConnection hConn )
if (connect_socket->second.status != CONNECT_SOCKET_NOT_ACCEPTED) return k_EResultInvalidState; if (connect_socket->second.status != CONNECT_SOCKET_NOT_ACCEPTED) return k_EResultInvalidState;
connect_socket->second.status = CONNECT_SOCKET_CONNECTED; connect_socket->second.status = CONNECT_SOCKET_CONNECTED;
send_packet_new_connection(connect_socket->first); send_packet_new_connection(connect_socket->first);
launch_callback(connect_socket->first, CONNECT_SOCKET_NOT_ACCEPTED);
return k_EResultOK; return k_EResultOK;
} }