Skip to content

Commit 866b063

Browse files
committed
make protocol binding synchronous. Should fix ipfs/js-ipfs/issues/944
1 parent 8b22cf2 commit 866b063

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/index.js

+7-4
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,14 @@ class PubSubRoom extends EventEmitter {
3030
throw new Error('This IPFS node does not have pubsub.')
3131
}
3232

33-
if (this._ipfs.isOnline()) {
34-
this._start()
35-
}
36-
this._ipfs.on('ready', this._start.bind(this))
33+
// if (this._ipfs.isOnline()) {
34+
// this._start()
35+
// }
36+
// this._ipfs.on('ready', this._start.bind(this))
37+
3738
this._ipfs.on('stop', this.leave.bind(this))
39+
40+
this._start()
3841
}
3942

4043
getPeers () {

0 commit comments

Comments
 (0)