Check for contextdo before writing eFinish message.

This commit is contained in:
hauser_n
2006-01-30 01:53:51 +00:00
parent c99eef86aa
commit e7e5607cb1

View File

@ -307,7 +307,14 @@ extern char *SkipSpace(char *pPtr);
self->eOut = eStatus;
Tcl_ResetResult((Tcl_Interp *)self->pTcl);
MacroPush(pCon);
pCon->conStatus = 0;
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();
deleteArgv: