1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-15 15:53:55 +00:00

Fixed uncaught exception on exit

This commit is contained in:
Bryan Roe
2020-02-25 14:21:24 -08:00
parent 7f49bedd29
commit 2669b10a5b
2 changed files with 8 additions and 8 deletions

View File

@@ -61,7 +61,7 @@ function windows_notifybar_local(title)
.createEvent('close')
.addMethod('close', function close()
{
for (var i in this._pumps)
for (var i = 0; i < this._pumps.length; ++i)
{
this._pumps[i].removeAllListeners('exit');
this._pumps[i].close();
@@ -99,8 +99,8 @@ function windows_notifybar_local(title)
this._HANDLE = h;
});
this.notifybar._pumps.peek().on('exit', function (h)
{
for(var i in this.notifybar._pumps)
{
for (var i = 0; i < this.notifybar._pumps.length; ++i)
{
this.notifybar._pumps[i].removeAllListeners('exit');
this.notifybar._pumps[i].close();