fix: increase default timeouts and ensure they are applied to XtreamService

This commit is contained in:
Michael committed 2026-03-10 15:44:04 +01:00
1 parent 16b4bfc17a
commit 36a74d9e97
3 files changed
+16 -6

No files matched your search

@@ -19,9 +19,9 @@ enum BufferSize {
/// Connection timeout presets
enum ConnectionTimeout {
short, // 15 seconds
medium, // 30 seconds
long, // 60 seconds
short, // 30 seconds
medium, // 60 seconds
long, // 120 seconds
}
/// EPG cache duration presets
@@ -205,11 +205,11 @@ class IptvSettings {
int get timeoutSeconds {
switch (connectionTimeout) {
case ConnectionTimeout.short:
return 15;
case ConnectionTimeout.medium:
return 30;
case ConnectionTimeout.long:
case ConnectionTimeout.medium:
return 60;
case ConnectionTimeout.long:
return 120;
}
}