Skip to content

Commit 9ecf278

Browse files
committed
Avoids unnecessary _maybeConnect() in SocketConnectionManager.start()
1 parent 77a41bb commit 9ecf278

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/src/socket_connection.dart

+2-1
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,12 @@ class SocketConnectionManager {
7474
return;
7575
}
7676

77-
reconnect(
77+
await reconnect(
7878
forcedReconnectionRequested,
7979
reason: 'Immediate connection requested',
8080
immediately: true,
8181
);
82+
return;
8283
}
8384
await _maybeConnect();
8485
}

0 commit comments

Comments
 (0)