fix bug that leads to infinite callback loop when first command (typically 'out') fails
This commit is contained in:
@ -741,16 +741,15 @@ process()
|
|||||||
debug("Stream::process(%s) start\n", name());
|
debug("Stream::process(%s) start\n", name());
|
||||||
status = NO_ALARM;
|
status = NO_ALARM;
|
||||||
convert = OK;
|
convert = OK;
|
||||||
record->pact = true;
|
|
||||||
if (!startProtocol(StreamCore::StartNormal))
|
if (!startProtocol(StreamCore::StartNormal))
|
||||||
{
|
{
|
||||||
debug("Stream::process(%s): could not start, status=%d\n",
|
debug("Stream::process(%s): could not start, status=%d\n",
|
||||||
name(), status);
|
name(), status);
|
||||||
(void) recGblSetSevr(record, status, INVALID_ALARM);
|
(void) recGblSetSevr(record, status, INVALID_ALARM);
|
||||||
record->pact = false;
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
debug("Stream::process(%s): protocol started\n", name());
|
debug("Stream::process(%s): protocol started\n", name());
|
||||||
|
record->pact = true;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user