From 8b09ad44cda711ffb34d3f259a9dc9e98168455b Mon Sep 17 00:00:00 2001 From: Timo K Date: Tue, 28 Nov 2023 18:57:43 +0100 Subject: [PATCH] remove condition for disconnect Signed-off-by: Timo K --- src/room/InCallView.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/room/InCallView.tsx b/src/room/InCallView.tsx index f13e454c..6c4207c2 100644 --- a/src/room/InCallView.tsx +++ b/src/room/InCallView.tsx @@ -109,9 +109,7 @@ export const ActiveCall: FC = (props) => { useEffect(() => { return () => { - if (connState === ConnectionState.Connected) { - livekitRoom?.disconnect(); - } + livekitRoom?.disconnect(); }; // eslint-disable-next-line react-hooks/exhaustive-deps }, []);