Call StopDevice() in EmuNetDevice::DoDispose()
authorGustavo J. A. M. Carneiro <gjc@inescporto.pt>
Tue, 17 Aug 2010 21:28:08 -0700
changeset 6580ecb0f9a3849a
parent 6579 97653198b04a
child 6581 b3597c013780
Call StopDevice() in EmuNetDevice::DoDispose()
src/devices/emu/emu-net-device.cc
     1.1 --- a/src/devices/emu/emu-net-device.cc	Mon Aug 16 17:41:03 2010 -0400
     1.2 +++ b/src/devices/emu/emu-net-device.cc	Tue Aug 17 21:28:08 2010 -0700
     1.3 @@ -211,6 +211,10 @@
     1.4  EmuNetDevice::DoDispose()
     1.5  {
     1.6    NS_LOG_FUNCTION_NOARGS ();
     1.7 +  if (m_readThread != 0)
     1.8 +    {
     1.9 +      StopDevice ();
    1.10 +    }
    1.11    m_node = 0;
    1.12    NetDevice::DoDispose ();
    1.13  }