From ac424ca88a9ace635961a6dc9f00456127ca6e8f Mon Sep 17 00:00:00 2001 From: fros4943 Date: Wed, 25 Nov 2009 18:13:05 +0000 Subject: [PATCH] bugfix: interfered nondestination radio --- .../se/sics/cooja/radiomediums/AbstractRadioMedium.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/cooja/java/se/sics/cooja/radiomediums/AbstractRadioMedium.java b/tools/cooja/java/se/sics/cooja/radiomediums/AbstractRadioMedium.java index 3079c5734..153852c69 100644 --- a/tools/cooja/java/se/sics/cooja/radiomediums/AbstractRadioMedium.java +++ b/tools/cooja/java/se/sics/cooja/radiomediums/AbstractRadioMedium.java @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: AbstractRadioMedium.java,v 1.13 2009/11/25 15:49:58 fros4943 Exp $ + * $Id: AbstractRadioMedium.java,v 1.14 2009/11/25 18:13:05 fros4943 Exp $ */ package se.sics.cooja.radiomediums; @@ -186,8 +186,10 @@ public abstract class AbstractRadioMedium extends RadioMedium { for (RadioConnection conn : activeConnections) { if (conn.isDestination(radio)) { conn.addInterfered(radio); + if (!radio.isInterfered()) { + radio.interfereAnyReception(); + } } - radio.interfereAnyReception(); } }