Resolve #471 by extending fetch messagelist to 60 seconds and handling timeout/abort

This commit is contained in:
the-djmaze 2022-08-01 13:59:14 +02:00
parent 31b12c3625
commit 2c4bd445a5
3 changed files with 4 additions and 4 deletions

View file

@ -175,7 +175,7 @@ export class AbstractFetchRemote
)
.catch(err => {
console.error(err);
fCallback && fCallback(err.name == 'AbortError' ? 2 : 1);
fCallback && fCallback(err.name == 'AbortError' ? 2 : 1, err);
});
}

View file

@ -54,7 +54,7 @@ class RemoteUserFetch extends AbstractFetchRemote {
this.request('MessageList',
fCallback,
params,
30000,
60000, // 60 seconds before aborting
sGetAdd,
bSilent ? [] : ['MessageList']
);