From 62c8535678d02e239aa9f02b36804ec935d90eb0 Mon Sep 17 00:00:00 2001 From: fros4943 Date: Thu, 29 Oct 2009 10:31:55 +0000 Subject: [PATCH] bugfix: radio medium should reset last connection data before notifying observers that a new connection has begun --- .../java/se/sics/cooja/radiomediums/AbstractRadioMedium.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/cooja/java/se/sics/cooja/radiomediums/AbstractRadioMedium.java b/tools/cooja/java/se/sics/cooja/radiomediums/AbstractRadioMedium.java index 1c41f8475..f6ae1d65a 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.11 2009/10/27 10:10:03 fros4943 Exp $ + * $Id: AbstractRadioMedium.java,v 1.12 2009/10/29 10:31:55 fros4943 Exp $ */ package se.sics.cooja.radiomediums; @@ -268,6 +268,7 @@ public abstract class AbstractRadioMedium extends RadioMedium { updateSignalStrengths(); /* Notify observers */ + lastConnection = null; radioMediumObservable.setRadioMediumChangedAndNotify(); } else if (event == Radio.RadioEvent.TRANSMISSION_FINISHED) {