|
|
|
@ -173,6 +173,9 @@ CPacketStream *CReflector::OpenStream(CDvHeaderPacket *DvHeader, CClient *client
|
|
|
|
// clients MUST have bee locked by the caller
|
|
|
|
// clients MUST have bee locked by the caller
|
|
|
|
// so we can freely access it within the fuction
|
|
|
|
// so we can freely access it within the fuction
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// check if streamid is valid
|
|
|
|
|
|
|
|
if ( DvHeader->GetStreamId() != 0 )
|
|
|
|
|
|
|
|
{
|
|
|
|
// check if client is valid candidate
|
|
|
|
// check if client is valid candidate
|
|
|
|
if ( m_Clients.IsClient(client) && !client->IsAMaster() )
|
|
|
|
if ( m_Clients.IsClient(client) && !client->IsAMaster() )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@ -220,6 +223,12 @@ CPacketStream *CReflector::OpenStream(CDvHeaderPacket *DvHeader, CClient *client
|
|
|
|
<< " with sid " << DvHeader->GetStreamId() << std::endl;
|
|
|
|
<< " with sid " << DvHeader->GetStreamId() << std::endl;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
// report
|
|
|
|
|
|
|
|
std::cout << "Detected null stream id for client " << client->GetCallsign() << std::endl;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// done
|
|
|
|
// done
|
|
|
|
return retStream;
|
|
|
|
return retStream;
|
|
|
|
|