Skip to content

Commit

Permalink
[core] Fixed blocking srt_connect_call.
Browse files Browse the repository at this point in the history
Set m_bConnecting to false on connection error.
  • Loading branch information
maxsharabayko authored and rndi committed Aug 27, 2019
1 parent ee19c99 commit db01a08
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions srtcore/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3155,6 +3155,7 @@ void CUDT::startConnect(const sockaddr* serv_addr, int32_t forced_isn)

if (e.getErrorCode() != 0)
{
m_bConnecting = false;
// The process is to be abnormally terminated, remove the connector
// now because most likely no other processing part has done anything with it.
m_pRcvQueue->removeConnector(m_SocketID);
Expand Down

0 comments on commit db01a08

Please sign in to comment.