remove unnecessary yield in TCP manager's poll task

Tokio will handle dead loop properly.
This commit is contained in:
zonyitoo
2022-01-17 23:13:50 +08:00
parent da541e0404
commit b4167b0add
@@ -223,8 +223,6 @@ impl TcpTun {
next_duration
};
tokio::task::yield_now().await;
tokio::select! {
_ = time::sleep(StdDuration::from(next_duration)) => {}
_ = manager_notify.notified() => {}