Split condition

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This commit is contained in:
Daniel Calviño Sánchez 2024-12-06 04:15:46 +01:00 committed by Marcel Hibbe
parent bcd3893e7d
commit 7cfee8f848
No known key found for this signature in database
GPG Key ID: C793F8B59F43CE7B

View File

@ -285,8 +285,12 @@ public class PeerConnectionWrapper {
* @param dataChannelMessage the message to send
*/
public void send(DataChannelMessage dataChannelMessage) {
if (dataChannelMessage == null) {
return;
}
DataChannel statusDataChannel = dataChannels.get("status");
if (statusDataChannel == null || dataChannelMessage == null) {
if (statusDataChannel == null) {
return;
}