Force sync when USER_NEW trigger is done.

This commit is contained in:
Thulinma 2016-05-18 17:03:26 +02:00
parent 1dfc22858a
commit 3ad8317df7

View file

@ -150,6 +150,7 @@ namespace Mist {
//sync byte 0 = no sync yet, wait for sync from controller...
IPC::statExchange tmpEx(statsPage.getData());
unsigned int i = 0;
tmpEx.setSync(0);
while (!tmpEx.getSync() && i++ < 30){
Util::wait(100);
stats();