orocos-toolchain / rtt

Orocos Real-Time Toolkit
http://www.orocos.org
Other
72 stars 79 forks source link

cleanupHook called twice after in runtime -> exception -> cleanup #318

Open doudou opened 4 years ago

doudou commented 4 years ago

I have to admit that I might very much off-base here. A.k.a. it might be an old already fixed bug, due to the fact that we're stuck to an old RTT commit because of https://github.com/orocos-toolchain/rtt/pull/302

Transition to exception calls stopHook and cleanupHook. After this, one has to call cleanup() which calls cleanupHook again. This was surprising to me. I don't know if it is expected, to be honest.