diff --git a/src/client/io_loop.rs b/src/client/io_loop.rs index 70558fbd4..4887dcbca 100644 --- a/src/client/io_loop.rs +++ b/src/client/io_loop.rs @@ -965,12 +965,10 @@ impl Remote { // on connection established client #[cfg(all(feature = "flutter", feature = "plugin_framework"))] #[cfg(not(any(target_os = "android", target_os = "ios")))] - { - crate::plugin::handle_listen_event( - crate::plugin::EVENT_ON_CONN_CLIENT.to_owned(), - self.handler.id.clone(), - ) - } + crate::plugin::handle_listen_event( + crate::plugin::EVENT_ON_CONN_CLIENT.to_owned(), + self.handler.id.clone(), + ) } if self.handler.is_file_transfer() { diff --git a/src/server/connection.rs b/src/server/connection.rs index d88472bec..a2959d254 100644 --- a/src/server/connection.rs +++ b/src/server/connection.rs @@ -565,12 +565,10 @@ impl Connection { } #[cfg(all(feature = "flutter", feature = "plugin_framework"))] #[cfg(not(any(target_os = "android", target_os = "ios")))] - { - crate::plugin::handle_listen_event( - crate::plugin::EVENT_ON_CONN_CLOSE_SERVER.to_owned(), - conn.lr.my_id.clone(), - ); - } + crate::plugin::handle_listen_event( + crate::plugin::EVENT_ON_CONN_CLOSE_SERVER.to_owned(), + conn.lr.my_id.clone(), + ); video_service::notify_video_frame_fetched(id, None); scrap::codec::Encoder::update(id, scrap::codec::EncodingUpdate::Remove); video_service::VIDEO_QOS.lock().unwrap().reset();