mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-13 06:43:42 +00:00
Fixed reference leak
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -261,7 +261,7 @@ function Promise(promiseFunc)
|
|||||||
{
|
{
|
||||||
// Save reference of this object
|
// Save reference of this object
|
||||||
refTable[this._internal._hashCode()] = this._internal;
|
refTable[this._internal._hashCode()] = this._internal;
|
||||||
this._internal.once('settled', function () { refTable[this._hashCode()] = null; });
|
this._internal.once('settled', function () { delete refTable[this._hashCode()]; });
|
||||||
}
|
}
|
||||||
Object.defineProperty(this, "completed", {
|
Object.defineProperty(this, "completed", {
|
||||||
get: function ()
|
get: function ()
|
||||||
|
|||||||
Reference in New Issue
Block a user