| Index: webrtc/p2p/base/port.cc
|
| diff --git a/webrtc/p2p/base/port.cc b/webrtc/p2p/base/port.cc
|
| index 72f92b20ab25b01546047167b3e1409f0df36d69..32de8967d608a66864f393e0f8771874f4834e0b 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);
|
| }
|
|
|