diff --git a/lib/pages/live_room/view.dart b/lib/pages/live_room/view.dart index fb62fb04b..4ba5a27e9 100644 --- a/lib/pages/live_room/view.dart +++ b/lib/pages/live_room/view.dart @@ -87,11 +87,11 @@ class _LiveRoomPageState extends State WidgetsBinding.instance.removeObserver(this); ScreenBrightness().resetApplicationScreenBrightness(); PlPlayerController.setPlayCallBack(null); + _liveRoomController.msgStream?.close(); floating?.dispose(); _node.dispose(); plPlayerController.dispose(); _ctr.dispose(); - _liveRoomController.msgStream?.close(); _liveRoomController.scrollController.removeListener(() {}); _liveRoomController.scrollController.dispose(); super.dispose(); @@ -306,10 +306,10 @@ class _LiveRoomPageState extends State onPopInvokedWithResult: (bool didPop, Object? result) { if (plPlayerController.isFullScreen.value == true) { plPlayerController.triggerFullScreen(status: false); - } - if (MediaQuery.of(context).orientation == - Orientation.landscape) { - verticalScreenForTwoSeconds(); + if (MediaQuery.of(context).orientation == + Orientation.landscape) { + verticalScreenForTwoSeconds(); + } } }, child: Listener( diff --git a/lib/tcp/live.dart b/lib/tcp/live.dart index b5990dc1a..5a347f213 100644 --- a/lib/tcp/live.dart +++ b/lib/tcp/live.dart @@ -184,8 +184,8 @@ class LiveMessageStream { ), ); - final marshaledData = authPackage.marshal(); - logger.d(marshaledData); + // final marshaledData = authPackage.marshal(); + // logger.d(marshaledData); try { Future getSocket() async { for (final server in servers) {