asio icon indicating copy to clipboard operation
asio copied to clipboard

Fix timer cancel issue

Open jaredburkeen opened this issue 2 years ago • 0 comments

This PR resolves this issue: https://github.com/chriskohlhoff/asio/issues/1025

Running into an issue with cancelling a timer and it seems like we get into an infinite loop in cancel_timer() (timer_queue.hpp).

Based on this commit (made by @chriskohlhoff), it appears that setting the error code for completion handler should be done after the item has been popped on the op_queue: https://github.com/boostorg/asio/commit/a51b9b819844a2c6150b36d8f565063c75a429c4

jaredburkeen avatar Apr 29 '22 18:04 jaredburkeen