Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lib/modules/live_play/live_play_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ class LivePlayController extends GetxController {
// add delay to avoid hero animation lag
int delay = (Platform.isWindows || Platform.isLinux) ? 500 : 0;
Timer(Duration(milliseconds: delay), () {
// if controller is closed, should abort
if (isClosed) {
return;
}
videoController = VideoController(
playerKey: playerKey,
room: room,
Expand Down