revert the promise resolve

This commit is contained in:
blagoev 2017-11-13 23:31:33 +02:00
parent d22f1cd1ed
commit ba2309a540
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ module.exports = function(realmConstructor) {
else {
try {
let syncedRealm = new realmConstructor(config);
resolve(syncedRealm);
setTimeout(() => { resolve(syncedRealm); }, 1);
} catch (e) {
reject(e);
}