Added missing connection callback when accepting networking socket connection.

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

View File

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