mirror of
https://github.com/lubosz/overte.git
synced 2025-04-16 09:29:16 +02:00
CR
This commit is contained in:
parent
b2704da9ef
commit
29d017bb65
1 changed files with 2 additions and 1 deletions
|
@ -39,10 +39,11 @@ module.exports = {
|
|||
if (error) {
|
||||
response = { statusCode: httpRequest.status };
|
||||
}
|
||||
callback(error, response, optionalCallbackParameter);
|
||||
|
||||
// Break circular reference to httpRequest so the engine can garbage collect it.
|
||||
httpRequest.onreadystatechange = null;
|
||||
|
||||
callback(error, response, optionalCallbackParameter);
|
||||
}
|
||||
};
|
||||
if (typeof options === 'string') {
|
||||
|
|
Loading…
Reference in a new issue