MJL 17/11/06 Fixed a problem in anstoHttpGet - first-try code OK but second try code buggy. Mailed to Mark K to update sinqHttp to match.
r1300 | mle | 2006-11-17 16:25:40 +1100 (Fri, 17 Nov 2006) | 2 lines
This commit is contained in:
committed by
Douglas Clowes
parent
c24c60b0c3
commit
98ae293764
@@ -127,7 +127,9 @@ static int anstoHttpGet(pAnstoHttp self, char *request){
|
||||
httpStatus = ghttp_process(self->syncRequest);
|
||||
if(httpStatus != ghttp_done){
|
||||
ghttp_close(self->syncRequest);
|
||||
anstoHttpGetPrepare(self,request);
|
||||
if (!anstoHttpGetPrepare(self,request))
|
||||
return 0; // MJL return here if failed
|
||||
ghttp_prepare(self->syncRequest); // MJL be sure to call ghttp_prepare before each ghttp_process
|
||||
httpStatus = ghttp_process(self->syncRequest);
|
||||
}
|
||||
if(httpStatus != ghttp_done){
|
||||
@@ -321,7 +323,7 @@ static int readStatus(pHistDriver pDriv){
|
||||
return 1;
|
||||
}
|
||||
/*---------------------------------------------------------------------*/
|
||||
// The status code mow allows pCon==NULL to be passed in.
|
||||
// The status code now allows pCon==NULL to be passed in.
|
||||
// This allows the status to be checked from all the start, stop, pause
|
||||
// and continue callbacks, so we can wait for the server to actually
|
||||
// change to the correct operating state before continuing.
|
||||
|
||||
Reference in New Issue
Block a user