mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-10-07 22:57:07 +00:00
Fix pubsub error handling
This commit is contained in:
@@ -130,7 +130,7 @@ class OrbitDB {
|
||||
logger.warn("Couldn't connect to Pubsub: " + e.message);
|
||||
if(!allowOffline) {
|
||||
logger.debug("'allowOffline' set to false, terminating");
|
||||
this._pubsub.disconnect();
|
||||
if(this._pubsub) this._pubsub.disconnect();
|
||||
throw e;
|
||||
}
|
||||
this.user = { username: username, id: username } // TODO: user id from ipfs hash
|
||||
|
||||
Reference in New Issue
Block a user