mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-23 19:53:47 +00:00
Fixed uncaught exception on exit
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -61,7 +61,7 @@ function windows_notifybar_local(title)
|
|||||||
.createEvent('close')
|
.createEvent('close')
|
||||||
.addMethod('close', function 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].removeAllListeners('exit');
|
||||||
this._pumps[i].close();
|
this._pumps[i].close();
|
||||||
@@ -100,7 +100,7 @@ function windows_notifybar_local(title)
|
|||||||
});
|
});
|
||||||
this.notifybar._pumps.peek().on('exit', function (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].removeAllListeners('exit');
|
||||||
this.notifybar._pumps[i].close();
|
this.notifybar._pumps[i].close();
|
||||||
|
|||||||
Reference in New Issue
Block a user