Remove reconnect on auto profile update

This commit is contained in:
problematicconsumer
2023-10-27 19:12:46 +03:30
parent d629b53ff7
commit 49d7268300
3 changed files with 15 additions and 3 deletions

View File

@@ -17,7 +17,7 @@ class ConnectivityController extends _$ConnectivityController with AppLogger {
activeProfileProvider.select((value) => value.asData?.value),
(previous, next) async {
if (previous == null) return;
final shouldReconnect = previous != next;
final shouldReconnect = next == null || previous.id != next.id;
if (shouldReconnect) {
await reconnect(next?.id);
}