| 196 | } |
| 197 | |
| 198 | void fail(const std::string &msg, int rcv) { |
| 199 | // Call from work_queue. Remember the exception later. |
| 200 | std::ostringstream os; |
| 201 | os << msg << rcv; |
| 202 | fail_msg_ = os.str(); |
| 203 | receiver_.connection().close(); |
| 204 | } |
| 205 | |
| 206 | void on_connection_close(proton::connection& c) override { |
| 207 | if (!fail_msg_.empty()) |
nothing calls this directly
no test coverage detected