mirror of
https://github.com/vector-im/element-call.git
synced 2026-02-02 04:05:56 +00:00
If theres an error remove the sync listener
This commit is contained in:
@@ -25,6 +25,7 @@ function waitForSync(client) {
|
||||
client.removeListener("sync", onSync);
|
||||
} else if (state === "ERROR") {
|
||||
reject(data?.error);
|
||||
client.removeListener("sync", onSync);
|
||||
}
|
||||
};
|
||||
client.on("sync", onSync);
|
||||
|
||||
Reference in New Issue
Block a user