revert: timeout (#19639)

This commit is contained in:
Daimolean 2025-07-01 06:02:50 +08:00 committed by GitHub
parent 93f9e118ad
commit bb8755021d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -121,7 +121,7 @@ class ApiService implements Authentication {
try { try {
await setEndpoint(serverUrl); await setEndpoint(serverUrl);
await serverInfoApi.pingServer().timeout(const Duration(seconds: 60)); await serverInfoApi.pingServer().timeout(const Duration(seconds: 5));
} on TimeoutException catch (_) { } on TimeoutException catch (_) {
return false; return false;
} on SocketException catch (_) { } on SocketException catch (_) {