src/devices/p2p/p2p-channel.cc
changeset 773 18ad0b94e2ae
parent 767 c36570ed4f5e
child 926 1fdec986d774
child 1048 9bbf68fe9c09
--- a/src/devices/p2p/p2p-channel.cc	Thu Jun 14 10:41:47 2007 +0200
+++ b/src/devices/p2p/p2p-channel.cc	Fri Jun 15 13:19:57 2007 -0700
@@ -135,14 +135,12 @@
 // The sender is going to free the packet as soon as it has been transmitted.
 // We need to copy it to get a reference so it won't e deleted.
 //
-// Above is not correct (GFR).  The event scheduler makes a copy
-// of the packet
-//  Packet packet = p;
+  Packet packet = p;
   NS_DEBUG ("PointToPointChannel::TransmitEnd (): Schedule event in " << 
             m_delay.GetSeconds () << "sec");
   Simulator::Schedule (m_delay,
                        &PointToPointChannel::PropagationCompleteEvent,
-                       this, p, src);
+                       this, packet, src);
   return true;
 }