From 0fdf52db2eea27d6d505f726349207202a40bfa6 Mon Sep 17 00:00:00 2001 From: fmoatamr Date: Thu, 10 Dec 2009 12:42:20 +0100 Subject: [PATCH] Bug 381: Wifi crashes on shutdown --- src/devices/wifi/mac-low.cc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/devices/wifi/mac-low.cc b/src/devices/wifi/mac-low.cc index 4b16c472b..116b679b6 100644 --- a/src/devices/wifi/mac-low.cc +++ b/src/devices/wifi/mac-low.cc @@ -303,7 +303,15 @@ void MacLow::DoDispose (void) { NS_LOG_FUNCTION (this); - CancelAllEvents (); + m_normalAckTimeoutEvent.Cancel (); + m_fastAckTimeoutEvent.Cancel (); + m_superFastAckTimeoutEvent.Cancel (); + m_fastAckFailedTimeoutEvent.Cancel (); + m_ctsTimeoutEvent.Cancel (); + m_sendCtsEvent.Cancel (); + m_sendAckEvent.Cancel (); + m_sendDataEvent.Cancel (); + m_waitSifsEvent.Cancel (); m_phy = 0; m_stationManager = 0; delete m_phyMacLowListener;