Skip to content

Commit

Permalink
fix: wrong logic of udp timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
iHsin authored Nov 5, 2024
1 parent 727b3f7 commit c7b7cd1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tuic-server/src/connection/udp_session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ impl UdpSession {
let listen = async move {
let mut rx = rx;
let mut timeout = tokio::time::interval(CONFIG.gc_lifetime);
timeout.reset();

loop {
let next;
Expand Down

0 comments on commit c7b7cd1

Please sign in to comment.