Fix v3 async whilst
This commit is contained in:
parent
8fac7cb69f
commit
d728ddea4c
|
@ -186,7 +186,7 @@ exports.MenuModule = class MenuModule extends PluginModule {
|
||||||
let opts = { cls : true }; // clear screen for first message
|
let opts = { cls : true }; // clear screen for first message
|
||||||
|
|
||||||
async.whilst(
|
async.whilst(
|
||||||
() => this.client.interruptQueue.hasItems(),
|
(callback) => callback(null, this.client.interruptQueue.hasItems()),
|
||||||
next => {
|
next => {
|
||||||
this.client.interruptQueue.displayNext(opts, err => {
|
this.client.interruptQueue.displayNext(opts, err => {
|
||||||
opts = {};
|
opts = {};
|
||||||
|
|
Loading…
Reference in New Issue