From e7e5607cb1c797bd30e260428f8cd018e294b415 Mon Sep 17 00:00:00 2001 From: hauser_n Date: Mon, 30 Jan 2006 01:53:51 +0000 Subject: [PATCH] Check for contextdo before writing eFinish message. --- SCinter.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/SCinter.c b/SCinter.c index f8fb2140..dcabc06e 100644 --- a/SCinter.c +++ b/SCinter.c @@ -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: