| Index: webrtc/p2p/base/port.h
|
| diff --git a/webrtc/p2p/base/port.h b/webrtc/p2p/base/port.h
|
| index 47903be05b55753b063e6bc8630946d8938e59a1..35db8a6f2a3e83ce3e4ab4aa69a07220a74691ce 100644
|
| --- a/webrtc/p2p/base/port.h
|
| +++ b/webrtc/p2p/base/port.h
|
| @@ -288,7 +288,7 @@ class Port : public PortInterface, public rtc::MessageHandler,
|
|
|
| protected:
|
| enum {
|
| - MSG_CHECKTIMEOUT = 0,
|
| + MSG_DEAD = 0,
|
| MSG_FIRST_AVAILABLE
|
| };
|
|
|
| @@ -340,8 +340,11 @@ class Port : public PortInterface, public rtc::MessageHandler,
|
| // Called when one of our connections deletes itself.
|
| void OnConnectionDestroyed(Connection* conn);
|
|
|
| - // Checks if this port is useless, and hence, should be destroyed.
|
| - void CheckTimeout();
|
| + // Whether this port is dead, and hence, should be destroyed on the controlled
|
| + // side.
|
| + bool dead() const {
|
| + return ice_role_ == ICEROLE_CONTROLLED && connections_.empty();
|
| + }
|
|
|
| rtc::Thread* thread_;
|
| rtc::PacketSocketFactory* factory_;
|
|
|