| 69 | } |
| 70 | |
| 71 | void openhd::reboot::handle_power_command_async(std::chrono::milliseconds delay, |
| 72 | bool shutdownOnly) { |
| 73 | const std::string tag = shutdownOnly ? "SHUTDOWN" : "REBOOT"; |
| 74 | AsyncHandle::instance().execute_async(tag, [delay, shutdownOnly] { |
| 75 | std::this_thread::sleep_for(delay); |
| 76 | systemctl_power(shutdownOnly); |
| 77 | }); |
| 78 | } |
nothing calls this directly
no test coverage detected