mirror of
https://github.com/immich-app/immich.git
synced 2025-12-17 17:23:20 +03:00
revert: timeout (#19639)
This commit is contained in:
@@ -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 (_) {
|
||||||
|
|||||||
Reference in New Issue
Block a user