Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

replace reboot with force_reboot

21pages13005e8242bf
diff --git a/src/server/connection.rs b/src/server/connection.rs
index e7611332b..b4da0e45e 100644
--- a/src/server/connection.rs
+++ b/src/server/connection.rs
@@ -2134,7 +2134,7 @@ impl Connection {
{
#[cfg(not(any(target_os = "android", target_os = "ios")))]
if self.restart {
- match system_shutdown::reboot() {
+ match system_shutdown::force_reboot() {
Ok(_) => log::info!("Restart by the peer"),
Err(e) => log::error!("Failed to restart: {}", e),
}