mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-02 11:04:00 +01:00
stop I2P tunnel upon deletion
This commit is contained in:
parent
4c8c3b6947
commit
d11ac64b95
|
@ -704,7 +704,10 @@ namespace client
|
||||||
for (auto it = c.begin (); it != c.end ();)
|
for (auto it = c.begin (); it != c.end ();)
|
||||||
{
|
{
|
||||||
if (!v (it->second.get ()))
|
if (!v (it->second.get ()))
|
||||||
|
{
|
||||||
|
it->second->Stop ();
|
||||||
it = c.erase (it);
|
it = c.erase (it);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
it++;
|
it++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue