From 7e79d33a16eed3d9d60973258b4856c570117ac7 Mon Sep 17 00:00:00 2001 From: fuwa Date: Thu, 27 Jun 2019 16:04:38 +0000 Subject: [PATCH] tighter setter for height --- cyberwow/lib/state.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cyberwow/lib/state.dart b/cyberwow/lib/state.dart index 328196f..b28562d 100644 --- a/cyberwow/lib/state.dart +++ b/cyberwow/lib/state.dart @@ -182,8 +182,9 @@ class SyncingState extends HookedState { print('syncing: loop exit'); + final _height = await rpc.height(); SyncedState _next = SyncedState(setState, getNotification, stdout, processOutput); - _next.height = await rpc.height(); + _next.height = _height; setState(_next); return _next; }