TF-3334 Dispose web socket when close controller

This commit is contained in:
dab246
2024-12-23 15:11:57 +07:00
committed by Dat H. Pham
parent dfd622d7ec
commit ba93e7b514
3 changed files with 5 additions and 0 deletions
@@ -149,6 +149,7 @@ class ThreadController extends BaseController with EmailActionController {
if (PlatformInfo.isWeb) {
_resizeBrowserStreamSubscription?.cancel();
}
_webSocketQueueHandler?.dispose();
super.onClose();
}