delete stream from inside

This commit is contained in:
orignal 2014-12-01 21:26:51 -05:00
parent 38ee813e41
commit 4e54fbec08
7 changed files with 17 additions and 19 deletions

View file

@ -99,10 +99,7 @@ namespace api
void DestroyStream (std::shared_ptr<i2p::stream::Stream> stream)
{
if (stream)
{
stream->Close ();
i2p::stream::DeleteStream (stream);
}
}
}
}