From 2ff458d223762c2004d41a4d04e6a67f0a093fd6 Mon Sep 17 00:00:00 2001 From: Hanjie Wu Date: Sat, 16 Dec 2023 11:16:43 -0800 Subject: bugfix --- src/libutp/utp_internal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libutp/utp_internal.cpp') diff --git a/src/libutp/utp_internal.cpp b/src/libutp/utp_internal.cpp index 8c1b2a86..34281fe9 100644 --- a/src/libutp/utp_internal.cpp +++ b/src/libutp/utp_internal.cpp @@ -3284,7 +3284,7 @@ void utp_check_timeouts(utp_context *ctx) infos.shrink_to_fit(); ctx->utp_sockets.erase_if( - [](auto& item){ + [](const UTPSocketHT::Map::iterator & item){ auto& conn = item->second; conn->check_timeouts(); return conn->state == CS_DESTROY; -- cgit