revert: timeout (#19639)
parent
93f9e118ad
commit
bb8755021d
|
|
@ -121,7 +121,7 @@ class ApiService implements Authentication {
|
|||
|
||||
try {
|
||||
await setEndpoint(serverUrl);
|
||||
await serverInfoApi.pingServer().timeout(const Duration(seconds: 60));
|
||||
await serverInfoApi.pingServer().timeout(const Duration(seconds: 5));
|
||||
} on TimeoutException catch (_) {
|
||||
return false;
|
||||
} on SocketException catch (_) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue