OpenCyphal / pycyphal

Python implementation of the Cyphal protocol stack.
https://pycyphal.readthedocs.io/
MIT License
117 stars 106 forks source link

Fix incorrect redundant output session finalization sequence #205

Closed pavel-kirienko closed 2 years ago

pavel-kirienko commented 2 years ago

First terminate tasks that may be blocked on the underlying session, then close the session itself.

Fixes #204

coveralls commented 2 years ago

Pull Request Test Coverage Report for Build 42165175


Files with Coverage Reduction New Missed Lines %
/home/appveyor/projects/pyuavcan/pyuavcan/transport/can/media/socketcan/_socketcan.py 1 78.54%
/home/appveyor/projects/pyuavcan/pyuavcan/transport/can/_session/_input.py 1 98.6%
/home/appveyor/projects/pyuavcan/pyuavcan/transport/loopback/_loopback.py 5 92.62%
/home/appveyor/projects/pyuavcan/pyuavcan/transport/redundant/_session/_output.py 8 93.06%
<!-- Total: 15 -->
Totals Coverage Status
Change from base Build 42125464: -0.05%
Covered Lines: 13660
Relevant Lines: 14139

💛 - Coveralls