Browse Source

squash: callback called with new Error() when stopped

dev1
paweldomas 6 years ago
parent
commit
b670fb674c
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      modules/util/AsyncQueue.js

+ 1
- 1
modules/util/AsyncQueue.js View File

38
      */
38
      */
39
     push(workFunction, callback) {
39
     push(workFunction, callback) {
40
         if (this._stopped) {
40
         if (this._stopped) {
41
-            callback && callback('The queue has been stopped');
41
+            callback && callback(new Error('The queue has been stopped'));
42
 
42
 
43
             return;
43
             return;
44
         }
44
         }

Loading…
Cancel
Save