1
0
mirror of https://github.com/ShaYmez/xlxd.git synced 2024-11-19 14:41:46 -05:00

Merge pull request #17 from nonoo/master

Fix missing first frame from outgoing DCS stream
This commit is contained in:
LX3JL 2016-10-18 19:46:38 +02:00 committed by GitHub
commit 189bb48cc6

View File

@ -94,8 +94,8 @@ void CDcsProtocol::Task(void)
if ( g_GateKeeper.MayTransmit(Header->GetMyCallsign(), Ip, PROTOCOL_DCS, Header->GetRpt2Module()) ) if ( g_GateKeeper.MayTransmit(Header->GetMyCallsign(), Ip, PROTOCOL_DCS, Header->GetRpt2Module()) )
{ {
// handle it // handle it
if ( !OnDvHeaderPacketIn(Header, Ip) ) OnDvHeaderPacketIn(Header, Ip);
{
if ( !Frame->IsLastPacket() ) if ( !Frame->IsLastPacket() )
{ {
//std::cout << "DCS DV frame" << std::endl; //std::cout << "DCS DV frame" << std::endl;
@ -108,12 +108,6 @@ void CDcsProtocol::Task(void)
} }
} }
else else
{
//std::cout << "DCS DV header:" << std::endl << *Header << std::endl;
delete Frame;
}
}
else
{ {
delete Header; delete Header;
delete Frame; delete Frame;