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 { ...@@ -288,10 +288,9 @@ public class Ieee80211AdHocMac extends AbstractMacLayer {
* reseted to 0. * reseted to 0.
*/ */
protected void sendNextMessage() { protected void sendNextMessage() {
toSend = null; toSend = getQueueHead();
retryCounter = 0; retryCounter = 0;
if (getQueueSize() > 0) { if (toSend != null) {
toSend = getQueueHead();
sendMessage(); 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