diff --git a/index.js b/index.js index 64b2d5f..9f21cea 100644 --- a/index.js +++ b/index.js @@ -81,6 +81,8 @@ module.exports = class ExclusiveKeyboard extends EventEmitter { this.emit('close', this); }); this.fd = undefined; + // close the read stream + this.data.destroy(); } }