diff options
author | Fernando Jiménez Moreno <ferjmoreno@gmail.com> | 2020-06-22 17:10:22 +0200 |
---|---|---|
committer | Fernando Jiménez Moreno <ferjmoreno@gmail.com> | 2020-06-29 16:53:50 +0200 |
commit | 6ebb73d9a42cc8c703b79a8fcbf76f4c56e1b5ee (patch) | |
tree | 2a1e8ae44b2dd94a103fd447c96ca883c6b7a795 /components/script/dom/rtcdatachannel.rs | |
parent | 7eb44f81f21551ee4c81d1cf62976fed2979c9a3 (diff) | |
download | servo-6ebb73d9a42cc8c703b79a8fcbf76f4c56e1b5ee.tar.gz servo-6ebb73d9a42cc8c703b79a8fcbf76f4c56e1b5ee.zip |
Fix rooting issue
Diffstat (limited to 'components/script/dom/rtcdatachannel.rs')
-rw-r--r-- | components/script/dom/rtcdatachannel.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/rtcdatachannel.rs b/components/script/dom/rtcdatachannel.rs index 7cf42b0f5fc..052f3f13131 100644 --- a/components/script/dom/rtcdatachannel.rs +++ b/components/script/dom/rtcdatachannel.rs @@ -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 } |