Skip to content

Commit

Permalink
revised
Browse files Browse the repository at this point in the history
  • Loading branch information
cheniujh committed Aug 13, 2024
1 parent 79ae59a commit a7171eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/net/src/worker_thread.cc
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,8 @@ void WorkerThread::DoCronTask() {
*/

for (auto& conn : ready_to_close_conns_) {
CloseFd(conn);
close(conn->fd());
server_thread_->handle_->FdClosedHandle(conn->fd(), conn->ip_port());
}
ready_to_close_conns_.clear();

Expand Down

0 comments on commit a7171eb

Please sign in to comment.