kind-sunset-1403
09/08/2025, 3:33 AMtall-airline-16756
09/08/2025, 3:33 AMtall-airline-16756
09/08/2025, 3:34 AMclosed flag is set to true.
Here’s how you can handle this:
• Before doing anything, double-check the engine’s state. For instance, use the SDK methods like isClosed in Flutter or Android to see if it’s closed.
• If it is closed, it’s best not to try reconnecting or performing other actions on it.
• Instead, to get things back up and running, create a brand new engine instance rather than reusing the closed one.
This error is actually part of LiveKit’s way of keeping things tidy—it helps manage resources properly by stopping operations on things that have already been cleaned up.
Sources: livekit/src/room/mod.rs | lib/src/core/engine.dart | livekit-android-sdk/src/main/java/io/livekit/android/room/RTCEngine.kt | engine.go