don't pop() it until after you send it!

pull/12/head
Tom Early 7 years ago
parent 0c54b0070f
commit 43e8dd3a78

@ -535,8 +535,8 @@ void CQnetModem::Run(const char *cfgfile)
CFrame cframe = queue.front();
const unsigned char type = cframe.type();
if ((type==TYPE_HEADER && dstarSpace>3U) || ((type==TYPE_DATA || type==TYPE_EOT || type==TYPE_LOST) && dstarSpace>0U)) {
queue.pop();
SendToModem(cframe.data());
queue.pop();
dstarSpace -= (type==TYPE_HEADER) ? 4U : 1U;
}
}

Loading…
Cancel
Save

Powered by TurnKey Linux.