Commit 3150165e authored by Tankred Hase's avatar Tankred Hase

Prevent race condition when initiating autopilot and polling getInfo

parent 43b44185
...@@ -118,7 +118,7 @@ when( ...@@ -118,7 +118,7 @@ when(
* is ready * is ready
*/ */
when( when(
() => store.syncedToChain && store.autopilotReady, () => store.syncedToChain && store.network && store.autopilotReady,
() => { () => {
autopilot.init(); autopilot.init();
} }
......
...@@ -106,7 +106,7 @@ when( ...@@ -106,7 +106,7 @@ when(
* is ready * is ready
*/ */
when( when(
() => store.syncedToChain && store.autopilotReady, () => store.syncedToChain && store.network && store.autopilotReady,
async () => { async () => {
await nap(); await nap();
autopilot.init(); 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