mirror of
https://github.com/shadowsocks/shadowsocks-rust.git
synced 2026-11-15 00:15:11 +00:00
remove unnecessary yield in TCP manager's poll task
Tokio will handle dead loop properly.
This commit is contained in:
@@ -223,8 +223,6 @@ impl TcpTun {
|
||||
next_duration
|
||||
};
|
||||
|
||||
tokio::task::yield_now().await;
|
||||
|
||||
tokio::select! {
|
||||
_ = time::sleep(StdDuration::from(next_duration)) => {}
|
||||
_ = manager_notify.notified() => {}
|
||||
|
||||
Reference in New Issue
Block a user