Skip to content

Commit 861faab

Browse files
committed
Clean up srt_epoll instance on SRT socket close
1 parent 182ba2e commit 861faab

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/socket_srt.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -651,6 +651,10 @@ namespace Socket{
651651
srt_close(sock);
652652
sock = INVALID_SRT_SOCKET;
653653
}
654+
if (eid != -1) {
655+
srt_epoll_release(eid);
656+
eid = -1;
657+
}
654658
}
655659

656660
SRTServer::SRTServer(){}

0 commit comments

Comments
 (0)