Commit e2328bed authored by yann300's avatar yann300

ensure remixd connected

parent 51253452
...@@ -49,8 +49,10 @@ module.exports = class SharedFolder { ...@@ -49,8 +49,10 @@ module.exports = class SharedFolder {
} }
init (cb) { init (cb) {
this._isReady = true this._remixd.ensureSocket((error) => {
cb() this._isReady = !error
cb(error)
})
} }
// @TODO: refactor all `this._remixd.call(....)` uses into `this.remixd[api](...)` // @TODO: refactor all `this._remixd.call(....)` uses into `this.remixd[api](...)`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment