mirror of
https://github.com/element-hq/element-call.git
synced 2026-10-22 13:12:04 +00:00
If theres an error remove the sync listener
This commit is contained in:
1 parent
99374bbe00
commit
3df1f89f06
1 file changed
+1
@@ -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