Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Commit bbb42a8

Browse files
authored
Merge pull request #1104 from lightninglabs/dev/fix-autopilot-race-condition
Fix autopilot race condition while initializing
2 parents e149353 + 105b1a5 commit bbb42a8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/action/index-mobile.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import {
1616
} from 'react-native';
1717
import { SecureStore, LocalAuthentication, Linking } from 'expo';
1818
import { NavigationActions } from 'react-navigation';
19+
import { nap } from '../helper';
1920
import store from '../store';
2021
import AppStorage from './app-storage';
2122
import IpcAction from './ipc-mobile';
@@ -119,7 +120,8 @@ when(
119120
*/
120121
when(
121122
() => store.syncedToChain && store.network && store.autopilotReady,
122-
() => {
123+
async () => {
124+
await nap();
123125
autopilot.init();
124126
}
125127
);

0 commit comments

Comments
 (0)