Commit 4cdbe8c9 authored by Björn Richerzhagen's avatar Björn Richerzhagen
Browse files

Applied queue fix in 802.11 mac (discovered by RK)

parent aa5a15ae
......@@ -288,10 +288,9 @@ public class Ieee80211AdHocMac extends AbstractMacLayer {
* reseted to 0.
*/
protected void sendNextMessage() {
toSend = null;
toSend = getQueueHead();
retryCounter = 0;
if (getQueueSize() > 0) {
toSend = getQueueHead();
if (toSend != null) {
sendMessage();
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment