Skip to content

Commit

Permalink
[core] Do not set peerAddress in connectIn(..). CUDT::startConnect(..…
Browse files Browse the repository at this point in the history
…) sets it itself.
  • Loading branch information
maxsharabayko committed Oct 4, 2021
1 parent 790b783 commit 2031b2c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions srtcore/api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1868,8 +1868,6 @@ int srt::CUDTUnited::connectIn(CUDTSocket* s, const sockaddr_any& target_addr, i
*/
try
{
// record peer address
s->m_PeerAddr = target_addr;
s->core().startConnect(target_addr, forced_isn);
}
catch (CUDTException& e) // Interceptor, just to change the state.
Expand Down

0 comments on commit 2031b2c

Please sign in to comment.