From 81eb35412e20075dfe2103490eaf7e15ce869b47 Mon Sep 17 00:00:00 2001 From: Maxim Sharabayko Date: Mon, 11 Jul 2022 12:57:46 +0200 Subject: [PATCH] [core] Minor clean up fix rethrowing an exception. --- srtcore/api.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srtcore/api.cpp b/srtcore/api.cpp index 606b1e8cf6..57566b9a33 100644 --- a/srtcore/api.cpp +++ b/srtcore/api.cpp @@ -1867,7 +1867,7 @@ int srt::CUDTUnited::connectIn(CUDTSocket* s, const sockaddr_any& target_addr, i { s->core().startConnect(target_addr, forced_isn); } - catch (CUDTException& e) // Interceptor, just to change the state. + catch (const CUDTException&) // Interceptor, just to change the state. { s->m_Status = SRTS_OPENED; throw;