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

Method Stop

libi2pd/NetDb.cpp:99–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97 }
98
99 void NetDb::Stop ()
100 {
101 if (m_Requests)
102 m_Requests->Stop ();
103 if (m_IsRunning)
104 {
105 if (m_PersistProfiles)
106 SaveProfiles ();
107 DeleteObsoleteProfiles ();
108 m_RouterInfos.clear ();
109 m_Floodfills.Clear ();
110 if (m_Thread)
111 {
112 m_IsRunning = false;
113 m_Queue.WakeUp ();
114 m_Thread->join ();
115 delete m_Thread;
116 m_Thread = 0;
117 }
118 m_LeaseSets.clear();
119 }
120 m_Requests = nullptr;
121 }
122
123 void NetDb::Run ()
124 {

Callers

nothing calls this directly

Calls 4

SaveProfilesFunction · 0.85
DeleteObsoleteProfilesFunction · 0.85
ClearMethod · 0.80
WakeUpMethod · 0.80

Tested by

no test coverage detected