From c9a2ccbe2d4d51132a59bffa8ce6ec0ff4ae8179 Mon Sep 17 00:00:00 2001 From: Bryan Tabor Date: Thu, 12 Sep 2024 06:11:33 -0400 Subject: [PATCH] don't skip packets before connection accepted in webrtc native driver (#69) --- net_drivers/webrtc_c.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/net_drivers/webrtc_c.h b/net_drivers/webrtc_c.h index ea18002..08f7ef3 100644 --- a/net_drivers/webrtc_c.h +++ b/net_drivers/webrtc_c.h @@ -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)