diff --git a/flutter/test/e2e/suite.dart b/flutter/test/e2e/suite.dart index 7eedb0300..0f97f8206 100644 --- a/flutter/test/e2e/suite.dart +++ b/flutter/test/e2e/suite.dart @@ -94,6 +94,7 @@ final testConfigs = FlutterTestConfiguration( oldWorld = world; await world.controlClient .create(world.roomId, Room(world.roomId, {})); + print('\n\n\n\n'); return world; }), defaultTimeout: const Duration(seconds: 60), diff --git a/src/media/track/remote.rs b/src/media/track/remote.rs index f33b406a7..555b52fc0 100644 --- a/src/media/track/remote.rs +++ b/src/media/track/remote.rs @@ -203,6 +203,12 @@ impl Track { } } +impl Drop for Track { + fn drop(&mut self) { + platform::spawn(Box::pin(self.0.track.stop())); + } +} + /// Media exchange direction of a [`Track`]. #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(u8)]