8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 640f779 commit 6701ef2Copy full SHA for 6701ef2
android/src/main/java/com/cloudwebrtc/webrtc/DataChannelObserver.java
@@ -5,6 +5,7 @@
5
6
import org.webrtc.DataChannel;
7
import io.flutter.plugin.common.EventChannel;
8
+import com.cloudwebrtc.webrtc.utils.AnyThreadSink;
9
import com.cloudwebrtc.webrtc.utils.ConstraintsMap;
10
11
class DataChannelObserver implements DataChannel.Observer, EventChannel.StreamHandler {
@@ -43,7 +44,7 @@ private String dataChannelStateString(DataChannel.State dataChannelState) {
43
44
45
@Override
46
public void onListen(Object o, EventChannel.EventSink sink) {
- eventSink = sink;
47
+ eventSink = new AnyThreadSink(sink);
48
}
49
50
0 commit comments