diff --git a/materialious/src/lib/sabr/shakaHttpPlugin.ts b/materialious/src/lib/sabr/shakaHttpPlugin.ts index 598a5b1e..6ee23e8c 100644 --- a/materialious/src/lib/sabr/shakaHttpPlugin.ts +++ b/materialious/src/lib/sabr/shakaHttpPlugin.ts @@ -100,13 +100,13 @@ export class HttpFetchPlugin { }); const timeoutMs = request.retryParameters.timeout; - if (timeoutMs) { - // const timer = new shaka.util.Timer(() => { - // abortStatus.timedOut = true; - // controller.abort(); - // }); - // timer.tickAfter(timeoutMs / 1000); - // op.finally(() => timer.stop()); + if (timeoutMs && Capacitor.getPlatform() !== 'android') { + const timer = new shaka.util.Timer(() => { + abortStatus.timedOut = true; + controller.abort(); + }); + timer.tickAfter(timeoutMs / 1000); + op.finally(() => timer.stop()); } return op;