mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-10-22 03:26:01 +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) {
|
if (window.AbortController) {
|
||||||
this.abort(action);
|
this.abort(action);
|
||||||
const controller = new window.AbortController();
|
const controller = new window.AbortController();
|
||||||
|
if (iTimeOut) {
|
||||||
setTimeout(() => controller.abort(), iTimeOut);
|
setTimeout(() => controller.abort(), iTimeOut);
|
||||||
|
}
|
||||||
init.signal = controller.signal;
|
init.signal = controller.signal;
|
||||||
this.oRequests[action] = controller;
|
this.oRequests[action] = controller;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue