mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-13 14:53:46 +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
|
||||
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", {
|
||||
get: function ()
|
||||
|
||||
Reference in New Issue
Block a user