src/devices/emu/emu-net-device.cc
changeset 6580 ecb0f9a3849a
parent 6576 29512368dd2e
     1.1 --- a/src/devices/emu/emu-net-device.cc	Mon Aug 16 08:30:29 2010 -0700
     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  }