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:
commit
189bb48cc6
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user