Set data channel in state.

This commit is contained in:
aforge
2023-01-18 14:10:49 -08:00
parent 9108efc8c9
commit b766e827c9
7 changed files with 8 additions and 7 deletions
+1 -1
View File
@@ -309,7 +309,7 @@ class CallPanel extends React.PureComponent {
channel.onopen = this.handleDataChannelOpen;
channel.onclose = this.handleDataChannelClose;
this.setState({pc: pc, waitingForPeer: false});
this.setState({pc: pc, dataChannel: channel, waitingForPeer: false});
return pc;
}