during sync login we check that sync server source ID isn't local (can happen after document fork if server is not restarted)

This commit is contained in:
azivner 2017-12-22 06:48:24 -05:00
parent 4a3169dfdd
commit d9e3a40ee4

View file

@ -92,6 +92,10 @@ async function login() {
hash: hash
});
if (source_id.isLocalSourceId(resp.sourceId)) {
throw new Error(`Sync server has source ID ${resp.sourceId} which is also local. Try restarting sync server.`);
}
syncContext.sourceId = resp.sourceId;
return syncContext;