From 3669fdc7524fc51eafb8459b14bfab8e151a8d04 Mon Sep 17 00:00:00 2001 From: djmaze Date: Wed, 29 Jul 2020 00:03:40 +0200 Subject: [PATCH] Bugfix: when iTimeOut = 0 it aborted the AbstractAjaxRemote request --- dev/Remote/AbstractAjax.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dev/Remote/AbstractAjax.js b/dev/Remote/AbstractAjax.js index db88c04bd..0dc6adb84 100644 --- a/dev/Remote/AbstractAjax.js +++ b/dev/Remote/AbstractAjax.js @@ -167,7 +167,9 @@ if (err) { if (window.AbortController) { this.abort(action); const controller = new window.AbortController(); - setTimeout(() => controller.abort(), iTimeOut); + if (iTimeOut) { + setTimeout(() => controller.abort(), iTimeOut); + } init.signal = controller.signal; this.oRequests[action] = controller; }