mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-06 04:37:12 +02:00
Fix interrupt bug when connecting over SSH with multi-node
This commit is contained in:
parent
f15629682c
commit
21b54eda7e
1 changed files with 11 additions and 7 deletions
|
@ -47,6 +47,7 @@ module.exports = class UserInterruptQueue
|
||||||
// pause defaulted on
|
// pause defaulted on
|
||||||
interruptItem.pause = _.get(interruptItem, 'pause', true);
|
interruptItem.pause = _.get(interruptItem, 'pause', true);
|
||||||
|
|
||||||
|
try {
|
||||||
this.client.currentMenuModule.attemptInterruptNow(interruptItem, (err, ateIt) => {
|
this.client.currentMenuModule.attemptInterruptNow(interruptItem, (err, ateIt) => {
|
||||||
if(err) {
|
if(err) {
|
||||||
// :TODO: Log me
|
// :TODO: Log me
|
||||||
|
@ -54,6 +55,9 @@ module.exports = class UserInterruptQueue
|
||||||
this.queue.push(interruptItem);
|
this.queue.push(interruptItem);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
} catch(e) {
|
||||||
|
this.queue.push(interruptItem);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
hasItems() {
|
hasItems() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue