Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sdroege/gst-plugin-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'utils/fallbackswitch/src/fallbackswitch/imp.rs')
-rw-r--r--utils/fallbackswitch/src/fallbackswitch/imp.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/utils/fallbackswitch/src/fallbackswitch/imp.rs b/utils/fallbackswitch/src/fallbackswitch/imp.rs
index 376975fb..42c994e3 100644
--- a/utils/fallbackswitch/src/fallbackswitch/imp.rs
+++ b/utils/fallbackswitch/src/fallbackswitch/imp.rs
@@ -583,9 +583,8 @@ impl FallbackSwitch {
let imp_weak = self.downgrade();
timeout_id
.wait_async(move |_clock, _time, clock_id| {
- let imp = match imp_weak.upgrade() {
- None => return,
- Some(imp) => imp,
+ let Some(imp) = imp_weak.upgrade() else {
+ return;
};
imp.on_timeout(clock_id);
})