Incorrect usage of leave in session documentation
ve3jrw opened this issue · 0 comments
ve3jrw commented
The documentation coding example to cleanly shut down a session has the call to the leave method as:
auto reason = session->leave(yield); // returns the Reason URI and
// other details from the router's
// GOODBYE message
This is not supported. As a minimum it needs to be:
auto reason = session->leave(Reason(), yield)