Skip to content

Commit

Permalink
fixup! fixup! TW-784: cancel download when exit the video player
Browse files Browse the repository at this point in the history
  • Loading branch information
sherlockvn committed Nov 16, 2023
1 parent a427299 commit f989d0e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/pages/chat/events/download_video_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ class _DownloadVideoWidgetState extends State<DownloadVideoWidget>
@override
void dispose() {
cancelToken.cancel();
downloadProgressNotifier.dispose();
_downloadStateNotifier.dispose();
super.dispose();
}

Expand Down Expand Up @@ -73,7 +75,7 @@ class _DownloadVideoWidgetState extends State<DownloadVideoWidget>
context,
e.toLocalizedString(context),
);
Logs().w('Error while playing video', e, s);
Logs().e('Error while playing video', e, s);
}
}

Expand Down

0 comments on commit f989d0e

Please sign in to comment.