| 768 | } |
| 769 | |
| 770 | void Connection::finishHandshake(sd_bus* bus) |
| 771 | { |
| 772 | // Process all requests that are part of the initial handshake, |
| 773 | // like processing the Hello message response, authentication etc., |
| 774 | // to avoid connection authentication timeout in dbus daemon. |
| 775 | |
| 776 | assert(bus != nullptr); |
| 777 | |
| 778 | auto r = sdbus_->sd_bus_flush(bus); |
| 779 | |
| 780 | SDBUS_THROW_ERROR_IF(r < 0, "Failed to flush bus on opening", -r); |
| 781 | } |
| 782 | |
| 783 | void Connection::notifyEventLoopToExit() |
| 784 | { |
nothing calls this directly
no test coverage detected