Skip to content

fix: handle combined code converter close modes - #198

Open
Rahuf-786 wants to merge 1 commit into
boostorg:developfrom
Rahuf-786:fix/code-converter-combined-close-pr
Open

Rahuf-786 wants to merge 1 commit into
boostorg:developfrom
Rahuf-786:fix/code-converter-combined-close-pr

Conversation

@Rahuf-786

Copy link
Copy Markdown

Fixes #94. code_converter::close() defaults to in | out, but the implementation compared which to each mode using exact equality. When both bits were set, neither close path ran, so buffered output was not flushed and the converter remained marked open. Check the requested mode bits individually and clear the open flag after a combined close.

No tests run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Manual close of code_converter device does not flush data

1 participant