]> sigrok.org Git - libsigrokdecode.git/commitdiff
instance: return SRD_ERR_TERM_REQ when execution shall terminate
authorGerhard Sittig <redacted>
Mon, 23 Apr 2018 18:42:54 +0000 (20:42 +0200)
committerGerhard Sittig <redacted>
Mon, 23 Apr 2018 21:25:42 +0000 (23:25 +0200)
The previous implementation internally noticed the "want terminate"
request, and skipped decoder execution to faster get to the end of the
input stream. But an OK return code was provided in that code path, and
more input data was sent by applications (sometimes for many seconds or
few minutes).

Do return a new SRD_ERR_TERM_REQ error code, such that applications can
tell failed execution from requested termination.


No differences found