diff --git a/libi2pd_client/ClientContext.cpp b/libi2pd_client/ClientContext.cpp index 558a5b7e..5c9048e3 100644 --- a/libi2pd_client/ClientContext.cpp +++ b/libi2pd_client/ClientContext.cpp @@ -704,7 +704,10 @@ namespace client for (auto it = c.begin (); it != c.end ();) { if (!v (it->second.get ())) + { + it->second->Stop (); it = c.erase (it); + } else it++; }