close socket upon PacketSink::StopApplication()
authorTom Henderson <tomh@tomh.org>
Wed, 02 Jul 2008 21:07:36 -0700
changeset 3379 a2ef1eb4c16d
parent 3378 747aeace32ee
child 3380 38b8549b1ad3
close socket upon PacketSink::StopApplication()
src/applications/packet-sink/packet-sink.cc
--- a/src/applications/packet-sink/packet-sink.cc	Wed Jul 02 13:23:54 2008 -0700
+++ b/src/applications/packet-sink/packet-sink.cc	Wed Jul 02 21:07:36 2008 -0700
@@ -95,6 +95,7 @@
 {
   if (m_socket) 
     {
+      m_socket->Close ();
       m_socket->SetRecvCallback (MakeNullCallback<void, Ptr<Socket> > ());
     }
 }