From eec824f98a569502adb4e92506ed63e01cb66ab2 Mon Sep 17 00:00:00 2001 From: Ferdi Franceschini Date: Tue, 3 Mar 2009 11:42:26 +1100 Subject: [PATCH] SICS-294 anstohttp.c Histmem mow only calls TaskYield after SICS has finished initalising, this stops the statusfile task from being called early and overwriting the status file. r2765 | ffr | 2009-03-03 11:42:26 +1100 (Tue, 03 Mar 2009) | 5 lines --- site_ansto/anstohttp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)); }