mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-08 15:43:17 +02:00
Break JS circular ref to help garbage collect
This commit is contained in:
parent
0b72e4dc60
commit
ec9d13700d
1 changed files with 3 additions and 0 deletions
|
@ -40,6 +40,9 @@ module.exports = {
|
|||
response = { statusCode: httpRequest.status };
|
||||
}
|
||||
callback(error, response, optionalCallbackParameter);
|
||||
|
||||
// Break circular reference to httpRequest so the engine can garbage collect it.
|
||||
httpRequest.onreadystatechange = null;
|
||||
}
|
||||
};
|
||||
if (typeof options === 'string') {
|
||||
|
|
Loading…
Reference in a new issue