Skip to content

Commit

Permalink
fix #306
Browse files Browse the repository at this point in the history
  • Loading branch information
rustdesk authored Jan 30, 2024
1 parent 70242e6 commit 324dfd6
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,6 @@ pub async fn listen_signal() -> Result<()> {
use hbb_common::tokio::signal::unix::{signal, SignalKind};

tokio::spawn(async {
let mut s = signal(SignalKind::hangup())?;
let hangup = s.recv();
let mut s = signal(SignalKind::terminate())?;
let terminate = s.recv();
let mut s = signal(SignalKind::interrupt())?;
Expand All @@ -166,9 +164,6 @@ pub async fn listen_signal() -> Result<()> {
let quit = s.recv();

tokio::select! {
_ = hangup => {
log::info!("signal hangup");
}
_ = terminate => {
log::info!("signal terminate");
}
Expand Down

0 comments on commit 324dfd6

Please sign in to comment.