diff --git a/site_ansto/anstohttp.c b/site_ansto/anstohttp.c index a587662d..a6fb3800 100644 --- a/site_ansto/anstohttp.c +++ b/site_ansto/anstohttp.c @@ -518,7 +518,8 @@ static int AnstoHttpStatusWithRetries(pHistDriver self, int requiredstate,SConne { // Service other SICS tasks while we wait. pTaskMan pTasker = GetTasker(); - if (pTasker) + /* Don't run the taskloop during initialisation */ + if (pTasker && (pServ->dummyCon != NULL)) TaskYield(pTasker); } while(get_localtime_us()<(start_time_us+STATUS_READ_DELAY_USEC)); }