mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-26 02:55:25 +02:00
Merge pull request #16063 from Atlante45/fix/requesjs
BUGZ-1242: Fix linux specific script engine crash
This commit is contained in:
commit
65ee21bb01
1 changed files with 2 additions and 2 deletions
|
@ -40,10 +40,10 @@ module.exports = {
|
||||||
response = { statusCode: httpRequest.status };
|
response = { statusCode: httpRequest.status };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
callback(error, response, optionalCallbackParameter);
|
||||||
|
|
||||||
// Break circular reference to httpRequest so the engine can garbage collect it.
|
// Break circular reference to httpRequest so the engine can garbage collect it.
|
||||||
httpRequest.onreadystatechange = null;
|
httpRequest.onreadystatechange = null;
|
||||||
|
|
||||||
callback(error, response, optionalCallbackParameter);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
if (typeof options === 'string') {
|
if (typeof options === 'string') {
|
||||||
|
|
Loading…
Reference in a new issue