minor fix...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2020-11-23 03:15:23 +03:00
parent e864249603
commit 128471870e
2 changed files with 5 additions and 4 deletions

View File

@ -1,6 +1,6 @@
{
"name": "ig-types",
"version": "4.1.0",
"version": "4.1.1",
"description": "Generic JavaScript types and type extensions...",
"main": "main.js",
"scripts": {

View File

@ -169,10 +169,8 @@ module.Queue = object.Constructor('Queue', Array, {
// XXX will this be collected by the GC if it is polling???
if(this.length == 0
&& this.state == 'running'){
this.trigger('queueEmpty')
// auto-stop...
this.auto_stop ?
// auto-stop...
this.stop()
// pole...
: (this.poling_delay
@ -260,6 +258,9 @@ module.Queue = object.Constructor('Queue', Array, {
} else {
this.trigger('taskCompleted', task, res) }
this.length == 0
&& this.trigger('queueEmpty')
return this },