aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/rtcdatachannel.rs
diff options
context:
space:
mode:
authorFernando Jiménez Moreno <ferjmoreno@gmail.com>2020-06-22 17:10:22 +0200
committerFernando Jiménez Moreno <ferjmoreno@gmail.com>2020-06-29 16:53:50 +0200
commit6ebb73d9a42cc8c703b79a8fcbf76f4c56e1b5ee (patch)
tree2a1e8ae44b2dd94a103fd447c96ca883c6b7a795 /components/script/dom/rtcdatachannel.rs
parent7eb44f81f21551ee4c81d1cf62976fed2979c9a3 (diff)
downloadservo-6ebb73d9a42cc8c703b79a8fcbf76f4c56e1b5ee.tar.gz
servo-6ebb73d9a42cc8c703b79a8fcbf76f4c56e1b5ee.zip
Fix rooting issue
Diffstat (limited to 'components/script/dom/rtcdatachannel.rs')
-rw-r--r--components/script/dom/rtcdatachannel.rs4
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
}