MCPcopy Create free account
hub / github.com/PurpleI2P/i2pd / Terminate

Method Terminate

libi2pd/Streaming.cpp:158–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156 }
157
158 void Stream::Terminate (bool deleteFromDestination) // should be called from StreamingDestination::Stop only
159 {
160 m_Status = eStreamStatusTerminated;
161 m_AckSendTimer.cancel ();
162 m_ReceiveTimer.cancel ();
163 m_ResendTimer.cancel ();
164 m_SendTimer.cancel ();
165 //CleanUp (); /* Need to recheck - broke working on windows */
166 if (deleteFromDestination)
167 m_LocalDestination.DeleteStream (shared_from_this ());
168 }
169
170 void Stream::CleanUp ()
171 {

Callers 3

StopMethod · 0.45
HandleNextPacketMethod · 0.45
DeleteStreamMethod · 0.45

Calls 1

DeleteStreamMethod · 0.45

Tested by

no test coverage detected