fix: alot
This commit is contained in:
@@ -65,9 +65,7 @@ class AppUpdateUtil {
|
||||
|
||||
final url = Uri.parse('$serverUrl/api/update?version=$version');
|
||||
|
||||
final response = await http.get(url);
|
||||
|
||||
debugPrint('Response from update server: ${response.body}');
|
||||
final response = await http.get(url).timeout(const Duration(seconds: 15));
|
||||
|
||||
if (response.statusCode != 200) {
|
||||
throw Exception('Update server unavailable');
|
||||
|
||||
Reference in New Issue
Block a user