| Index: webrtc/p2p/base/port.cc
|
| diff --git a/webrtc/p2p/base/port.cc b/webrtc/p2p/base/port.cc
|
| index 93fda17e7cbe86c7912bcb3fbd3e4f129c4e92c8..bf549248b7b51cbf36b285d442b68277f3b8e6d3 100644
|
| --- a/webrtc/p2p/base/port.cc
|
| +++ b/webrtc/p2p/base/port.cc
|
| @@ -1148,6 +1148,11 @@ void Connection::Prune() {
|
| }
|
|
|
| void Connection::Destroy() {
|
| + // TODO(deadbeef, nisse): This may leak if an application closes a
|
| + // PeerConnection and then quickly destroys the PeerConnectionFactory (along
|
| + // with the networking thread on which this message is posted). Also affects
|
| + // tests, with a workaround in
|
| + // AutoSocketServerThread::~AutoSocketServerThread.
|
| LOG_J(LS_VERBOSE, this) << "Connection destroyed";
|
| port_->thread()->Post(RTC_FROM_HERE, this, MSG_DELETE);
|
| }
|
|
|