mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-10-20 02:26:05 +08:00
Bugfix: when iTimeOut = 0 it aborted the AbstractAjaxRemote request
This commit is contained in:
parent
a0d30f4a40
commit
3669fdc752
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue