mirror of
https://github.com/immich-app/immich
synced 2025-06-08 22:58:04 +00:00
only disconnect if we are connected
This commit is contained in:
parent
325e057c69
commit
48f55c6806
@ -115,7 +115,9 @@ class CastDialog extends ConsumerWidget {
|
||||
return;
|
||||
}
|
||||
|
||||
await ref.read(castProvider.notifier).disconnect();
|
||||
if (castManager.isCasting) {
|
||||
await ref.read(castProvider.notifier).disconnect();
|
||||
}
|
||||
|
||||
ref.read(castProvider.notifier).connect(type, deviceObj);
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user