Skip to content

Commit

Permalink
Handle GST_WEBRTC_DATA_CHANNEL_STATE_OPEN correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
ehfd authored Aug 22, 2023
1 parent 1052c5e commit 09e5157
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/selkies_gstreamer/gstwebrtc_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -959,7 +959,7 @@ def is_data_channel_ready(self):
[bool] -- true if data channel is open
"""

return self.data_channel
return self.data_channel and self.data_channel.get_property("ready-state") == GstWebRTC.WebRTCDataChannelState.OPEN

def __send_data_channel_message(self, msg_type, data):
"""Sends message to the peer through the data channel
Expand Down

0 comments on commit 09e5157

Please sign in to comment.