mirror of
https://github.com/retroplasma/earth-reverse-engineering.git
synced 2026-02-01 14:36:47 +00:00
Clean up requests on error
This commit is contained in:
parent
2b3359fc4b
commit
18981db204
@ -125,6 +125,7 @@ module.exports = function init(config) {
|
||||
DUMP_RAW && fs.writeFileSync(path.join(DUMP_RAW_DIR, `${fn}.raw`), payload);
|
||||
} catch (ex) {
|
||||
requests[url].forEach(p => p.reject(ex));
|
||||
delete requests[url];
|
||||
throw ex;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user