Skip to content

Commit

Permalink
[core] Set closing state for a broken link
Browse files Browse the repository at this point in the history

Co-authored-by: Mikołaj Małecki <ethouris@gmail.com>
  • Loading branch information
maxsharabayko and ethouris committed Dec 22, 2020
1 parent 21ad8d1 commit 60a66a3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions srtcore/core.cpp
Expand Up @@ -11276,6 +11276,7 @@ void CUDT::checkTimers()

void CUDT::updateBrokenConnection()
{
m_bClosing = true;
releaseSynch();
// app can call any UDT API to learn the connection_broken error
s_UDTUnited.m_EPoll.update_events(m_SocketID, m_sPollID, SRT_EPOLL_IN | SRT_EPOLL_OUT | SRT_EPOLL_ERR, true);
Expand Down

0 comments on commit 60a66a3

Please sign in to comment.