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