mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-11-28 16:00:22 +00:00
fix(proxy): wait for TCP tasks during packet proxy shutdown (#2847)
This commit is contained in:
@@ -413,6 +413,9 @@ where
|
||||
pub(crate) async fn stop(&self) {
|
||||
let _operation = self.operation.lock().await;
|
||||
self.stop_started();
|
||||
// Rollback only requests cancellation; normal shutdown must also wait
|
||||
// for TCP tasks to release their listeners and streams.
|
||||
self.tcp.stop_and_wait().await;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user