Merge pull request #508 from NuSkooler/bugfix/doors_socket
Fixed door logic per issue #506
This commit is contained in:
commit
b0542cf51e
|
@ -57,8 +57,10 @@ module.exports = class Door {
|
||||||
run(exeInfo, cb) {
|
run(exeInfo, cb) {
|
||||||
this.encoding = (exeInfo.encoding || 'cp437').toLowerCase();
|
this.encoding = (exeInfo.encoding || 'cp437').toLowerCase();
|
||||||
|
|
||||||
if ('socket' === this.io && !this.sockServer) {
|
if ('socket' === this.io) {
|
||||||
|
if(!this.sockServer) {
|
||||||
return cb(Errors.UnexpectedState('Socket server is not running'));
|
return cb(Errors.UnexpectedState('Socket server is not running'));
|
||||||
|
}
|
||||||
} else if ('stdio' !== this.io) {
|
} else if ('stdio' !== this.io) {
|
||||||
return cb(Errors.Invalid(`"${this.io}" is not a valid io type!`));
|
return cb(Errors.Invalid(`"${this.io}" is not a valid io type!`));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue