mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-01-03 11:30:53 +00:00
bugfix: radio medium should reset last connection data before notifying observers that a new connection has begun
This commit is contained in:
parent
53b6e0e7fa
commit
62c8535678
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user