Skip to content

Commit

Permalink
[core] Rethrow an exception without copying it.
Browse files Browse the repository at this point in the history
Fixes #2380.
  • Loading branch information
maxsharabayko committed Jun 16, 2022
1 parent c9e48bd commit bb6c493
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion srtcore/api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1870,7 +1870,7 @@ int srt::CUDTUnited::connectIn(CUDTSocket* s, const sockaddr_any& target_addr, i
catch (CUDTException& e) // Interceptor, just to change the state.
{
s->m_Status = SRTS_OPENED;
throw e;
throw;
}

return 0;
Expand Down

0 comments on commit bb6c493

Please sign in to comment.