fix: firstClient null check race

This commit is contained in:
edde746
2026-03-04 10:01:40 +01:00
parent 13b5d7bae8
commit 8cd48f3af5
3 changed files with 2 additions and 6 deletions
+1 -1
View File
@@ -100,7 +100,7 @@ class _AuthScreenState extends State<AuthScreen> {
clientIdentifier: _authService.clientIdentifier,
);
if (!result.hasConnections) {
if (!result.hasConnections || result.firstClient == null) {
if (!mounted) return;
setState(() {
_isAuthenticating = false;