Skip to content

Commit

Permalink
[Android] Fix problems with data channel testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudwebrtc committed Jul 26, 2019
1 parent 72713dc commit 3cf1aaa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Expand Up @@ -234,6 +234,7 @@ public void onMethodCall(MethodCall call, Result notSafeResult) {
String peerConnectionId = call.argument("peerConnectionId");
int dataChannelId = call.argument("dataChannelId");
dataChannelClose(peerConnectionId, dataChannelId);
result.success(null);
} else if (call.method.equals("streamDispose")) {
String streamId = call.argument("streamId");
mediaStreamRelease(streamId);
Expand Down
Expand Up @@ -77,7 +77,6 @@ void setPeerConnection(PeerConnection peerConnection) {
}

void close() {
eventChannel.setStreamHandler(null);
peerConnection.close();
remoteStreams.clear();
remoteTracks.clear();
Expand All @@ -86,6 +85,7 @@ void close() {
void dispose(){
this.close();
peerConnection.dispose();
eventChannel.setStreamHandler(null);
}

void createDataChannel(String label, ConstraintsMap config, Result result) {
Expand Down

0 comments on commit 3cf1aaa

Please sign in to comment.