Fixed memory leak in peers

parent 6385be12
...@@ -185,7 +185,7 @@ Transport::handlePeerDisconnection(const std::shared_ptr<Peer>& peer) { ...@@ -185,7 +185,7 @@ Transport::handlePeerDisconnection(const std::shared_ptr<Peer>& peer) {
} }
#endif /* PISTACHE_USE_SSL */ #endif /* PISTACHE_USE_SSL */
peers.erase(it); peers.erase(it->first);
{ {
// Clean up buffers // Clean up buffers
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment