Fix rooting issue

This commit is contained in:
Fernando Jiménez Moreno 2020-06-22 17:10:22 +02:00
parent 7eb44f81f2
commit 6ebb73d9a4
2 changed files with 10 additions and 5 deletions

View file

@ -85,8 +85,6 @@ impl RTCDataChannel {
binary_type: DomRefCell::new(DOMString::from("blob")),
};
peer_connection.register_data_channel(servo_media_id, &channel);
channel
}
@ -107,6 +105,8 @@ impl RTCDataChannel {
global,
);
peer_connection.register_data_channel(rtc_data_channel.servo_media_id, &*rtc_data_channel);
rtc_data_channel
}