replace reboot with force_reboot
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
parent
d0dde6e572
commit
13005e8242
1 changed files with 1 additions and 1 deletions
|
|
@ -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),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue