From 18167492e79a0b04db958ea9262aebaad1ea1215 Mon Sep 17 00:00:00 2001 From: Andrew Osheroff Date: Tue, 19 Nov 2019 11:18:12 +0100 Subject: [PATCH] JS changes --- index.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/index.js b/index.js index c3783f3..9ecbcb1 100644 --- a/index.js +++ b/index.js @@ -140,7 +140,6 @@ class Fuse extends Nanoresource { this.ops = ops this._thread = null this._handlers = this._makeHandlerArray() - this._closed = false const implemented = [binding.op_init, binding.op_error, binding.op_getattr] if (ops) { @@ -229,8 +228,6 @@ class Fuse extends Nanoresource { // Lifecycle methods _open (cb) { - if (this._closed) return process.nextTick(cb, new Error('Cannot reopen a closed FUSE instance.')) - this._thread = Buffer.alloc(binding.sizeof_fuse_thread_t) this._openCallback = cb @@ -525,11 +522,11 @@ class Fuse extends Nanoresource { // Public API mount (cb) { - return this._open(cb) + return this.open(cb) } unmount (cb) { - return this._close(cb) + return this.close(cb) } errno (code) {