From 6eefba6e66066efcdd8473641afb8919d378cb1f Mon Sep 17 00:00:00 2001 From: needle10 Date: Thu, 27 Nov 2025 15:13:43 +0300 Subject: [PATCH] =?UTF-8?q?=D1=84=D0=B8=D0=BA=D1=81=20=D0=B2=D1=85=D0=BE?= =?UTF-8?q?=D0=B4=D0=B0=20=D0=BF=D0=BE=20=D0=BD=D0=BE=D0=BC=D0=B5=D1=80?= =?UTF-8?q?=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/api/api_service_connection.dart | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/api/api_service_connection.dart b/lib/api/api_service_connection.dart index be95e46..1492261 100644 --- a/lib/api/api_service_connection.dart +++ b/lib/api/api_service_connection.dart @@ -371,6 +371,14 @@ extension ApiServiceConnection on ApiService { "Токен найден, автоматически запускаем авторизацию (opcode 19)...", ); unawaited(_sendAuthRequestAfterHandshake()); + } else if (authToken == null) { + print( + "Токен не найден, завершаем ожидание для неавторизованной сессии", + ); + _isSessionReady = true; + if (_onlineCompleter != null && !_onlineCompleter!.isCompleted) { + _onlineCompleter!.complete(); + } } }