fix standby streaming

Origin commit data
------------------
Branch: ni/coolstream
Commit: 807835ef43
Author: TangoCash <eric@loxat.de>
Date: 2022-09-30 (Fri, 30 Sep 2022)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
TangoCash
2022-09-30 08:20:41 +02:00
committed by vanhofen
parent 895b351d70
commit e01e9d468b

View File

@@ -640,13 +640,12 @@ void CStreamManager::run()
continue;
}
g_RCInput->postMsg(NeutrinoMessages::EVT_STREAM_START, 0);
if (!AddClient(connfd))
{
close(connfd);
g_RCInput->postMsg(NeutrinoMessages::EVT_STREAM_STOP, 0);
}
else
g_RCInput->postMsg(NeutrinoMessages::EVT_STREAM_START, 0);
poll_timeout = 1000;
} else {
if (pfd[i].revents & (POLLHUP | POLLRDHUP)) {