Skip to content

Commit

Permalink
don't skip packets before connection accepted in webrtc native driver (
Browse files Browse the repository at this point in the history
  • Loading branch information
raisinrand authored Sep 12, 2024
1 parent a33a169 commit c9a2ccb
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions net_drivers/webrtc_c.h
Original file line number Diff line number Diff line change
Expand Up @@ -720,8 +720,6 @@ static void NBN_WebRTC_C_ServRemoveClientConnection(NBN_Connection *conn)

static int NBN_WebRTC_C_ServSendPacketTo(NBN_Packet *packet, NBN_Connection *conn)
{
if (!conn->is_accepted) return 0;

NBN_WebRTC_C_Peer *peer = (NBN_WebRTC_C_Peer*)conn->driver_data;

if (rtcSendMessage(peer->channel_id, (char *)packet->buffer, packet->size) < 0)
Expand Down

0 comments on commit c9a2ccb

Please sign in to comment.