| 136 | } |
| 137 | |
| 138 | void LeaseSetDestination::Start () |
| 139 | { |
| 140 | if (m_Nickname.empty ()) |
| 141 | m_Nickname = i2p::data::GetIdentHashAbbreviation (GetIdentHash ()); // set default nickname |
| 142 | LoadTags (); |
| 143 | m_Pool->SetLocalDestination (shared_from_this ()); |
| 144 | m_Pool->SetActive (true); |
| 145 | m_CleanupTimer.expires_after (std::chrono::seconds (DESTINATION_CLEANUP_TIMEOUT)); |
| 146 | m_CleanupTimer.async_wait (std::bind (&LeaseSetDestination::HandleCleanupTimer, |
| 147 | shared_from_this (), std::placeholders::_1)); |
| 148 | } |
| 149 | |
| 150 | void LeaseSetDestination::Stop () |
| 151 | { |
no test coverage detected