fix bug that leads to infinite callback loop when first command (typically 'out') fails

This commit is contained in:
2018-07-12 16:07:48 +02:00
parent 77d110de70
commit 54bc78f7c7

View File

@ -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;
} }