reimpl
Andrew Osheroff 5 years ago
parent 7ec7c065cf
commit 18167492e7

@ -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) {

Loading…
Cancel
Save