Merge pull request #6557 from 21pages/force_reboot
replace reboot with force_reboot
This commit is contained in:
commit
19e8ca6c06
@ -2134,7 +2134,7 @@ impl Connection {
|
|||||||
{
|
{
|
||||||
#[cfg(not(any(target_os = "android", target_os = "ios")))]
|
#[cfg(not(any(target_os = "android", target_os = "ios")))]
|
||||||
if self.restart {
|
if self.restart {
|
||||||
match system_shutdown::reboot() {
|
match system_shutdown::force_reboot() {
|
||||||
Ok(_) => log::info!("Restart by the peer"),
|
Ok(_) => log::info!("Restart by the peer"),
|
||||||
Err(e) => log::error!("Failed to restart: {}", e),
|
Err(e) => log::error!("Failed to restart: {}", e),
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user