forked from Ninjalama/streamyfin_mirror
fix: websocket should not try to connect without token
This commit is contained in:
@@ -179,7 +179,7 @@ export const PlaybackProvider: React.FC<{ children: ReactNode }> = ({
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
if (!deviceId || !api || !user) return;
|
||||
if (!deviceId || !api?.accessToken) return;
|
||||
|
||||
const url = `wss://${api?.basePath
|
||||
.replace("https://", "")
|
||||
|
||||
Reference in New Issue
Block a user