Check for a matrixclient before trying to use it
Was being caught by the try block but still logging an error to the console unnecessarily: we should not expect there to necessarily be a matrix client since we run this from the constructor and there's a shared instance which could be constructed at any point.
This commit is contained in:
parent
e88f062f01
commit
066a01ae94
1 changed files with 1 additions and 0 deletions
|
@ -83,6 +83,7 @@ export class IntegrationManagers {
|
||||||
}
|
}
|
||||||
|
|
||||||
async _setupHomeserverManagers() {
|
async _setupHomeserverManagers() {
|
||||||
|
if (!MatrixClientPeg.get()) return;
|
||||||
try {
|
try {
|
||||||
console.log("Updating homeserver-configured integration managers...");
|
console.log("Updating homeserver-configured integration managers...");
|
||||||
const homeserverDomain = MatrixClientPeg.getHomeserverName();
|
const homeserverDomain = MatrixClientPeg.getHomeserverName();
|
||||||
|
|
Loading…
Reference in a new issue