Unverified Commit bbb42a8a authored by Tankred Hase's avatar Tankred Hase Committed by GitHub

Merge pull request #1104 from lightninglabs/dev/fix-autopilot-race-condition

Fix autopilot race condition while initializing
parents e1493532 105b1a54
......@@ -16,6 +16,7 @@ import {
} from 'react-native';
import { SecureStore, LocalAuthentication, Linking } from 'expo';
import { NavigationActions } from 'react-navigation';
import { nap } from '../helper';
import store from '../store';
import AppStorage from './app-storage';
import IpcAction from './ipc-mobile';
......@@ -119,7 +120,8 @@ when(
*/
when(
() => store.syncedToChain && store.network && store.autopilotReady,
() => {
async () => {
await nap();
autopilot.init();
}
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment