remove setTimeout to repro issue 1255
This commit is contained in:
parent
2df308ae64
commit
356d295e5f
|
@ -71,13 +71,13 @@ module.exports = function(realmConstructor) {
|
||||||
},
|
},
|
||||||
(error) => {
|
(error) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
setTimeout(() => { reject(error); }, 1);
|
reject(error);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
try {
|
try {
|
||||||
let syncedRealm = new realmConstructor(config);
|
let syncedRealm = new realmConstructor(config);
|
||||||
//FIXME: RN hangs here. Remove when node's makeCallback alternative is implemented
|
//FIXME: RN hangs here. Remove when node's makeCallback alternative is implemented
|
||||||
setTimeout(() => { resolve(syncedRealm); }, 1);
|
resolve(syncedRealm);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
reject(e);
|
reject(e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue