Check for contextdo before writing eFinish message.
This commit is contained in:
@ -307,7 +307,14 @@ extern char *SkipSpace(char *pPtr);
|
|||||||
self->eOut = eStatus;
|
self->eOut = eStatus;
|
||||||
Tcl_ResetResult((Tcl_Interp *)self->pTcl);
|
Tcl_ResetResult((Tcl_Interp *)self->pTcl);
|
||||||
MacroPush(pCon);
|
MacroPush(pCon);
|
||||||
|
pCon->conStatus = 0;
|
||||||
iRet = pCommand->OFunc(pCon, self, pCommand->pData, argc, argv);
|
iRet = pCommand->OFunc(pCon, self, pCommand->pData, argc, argv);
|
||||||
|
/* If a task is registered with the dev exec then conStatus is HWBusy*/
|
||||||
|
if (pCon->conStatus != HWBusy) {
|
||||||
|
comCon = SCGetContext(pCon);
|
||||||
|
if (0 != strcmp("contextdo",comCon.deviceID))
|
||||||
|
SCWrite(pCon,"",eFinish);
|
||||||
|
}
|
||||||
MacroPop();
|
MacroPop();
|
||||||
|
|
||||||
deleteArgv:
|
deleteArgv:
|
||||||
|
Reference in New Issue
Block a user