diff --git a/net/webrtc/src/janusvr_signaller/imp.rs b/net/webrtc/src/janusvr_signaller/imp.rs index 80a47f1d..b46563d2 100644 --- a/net/webrtc/src/janusvr_signaller/imp.rs +++ b/net/webrtc/src/janusvr_signaller/imp.rs @@ -152,7 +152,7 @@ struct InnerError { #[derive(Serialize, Deserialize, Debug)] struct RoomJoined { - room: Option, + room: RoomId, } #[derive(Serialize, Deserialize, Debug)] @@ -425,10 +425,8 @@ impl Signaller { if let Some(PluginData::VideoRoom { data: plugindata }) = event.plugindata { match plugindata { VideoRoomData::Joined(joined) => { - if let Some(room) = joined.room { - gst::trace!(CAT, imp: self, "Joined room {room:?} successfully"); - self.session_requested(); - } + gst::trace!(CAT, imp: self, "Joined room {:?} successfully", joined.room); + self.session_requested(); } VideoRoomData::Event(room_event) => { if room_event.error_code.is_some() && room_event.error.is_some() {