| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 953 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 964 | 964 |
| 965 void BasicPortAllocatorSession::OnPortDestroyed( | 965 void BasicPortAllocatorSession::OnPortDestroyed( |
| 966 PortInterface* port) { | 966 PortInterface* port) { |
| 967 RTC_DCHECK(rtc::Thread::Current() == network_thread_); | 967 RTC_DCHECK(rtc::Thread::Current() == network_thread_); |
| 968 for (std::vector<PortData>::iterator iter = ports_.begin(); | 968 for (std::vector<PortData>::iterator iter = ports_.begin(); |
| 969 iter != ports_.end(); ++iter) { | 969 iter != ports_.end(); ++iter) { |
| 970 if (port == iter->port()) { | 970 if (port == iter->port()) { |
| 971 ports_.erase(iter); | 971 ports_.erase(iter); |
| 972 LOG_J(LS_INFO, port) << "Removed port from allocator (" | 972 LOG_J(LS_INFO, port) << "Removed port from allocator (" |
| 973 << static_cast<int>(ports_.size()) << " remaining)"; | 973 << static_cast<int>(ports_.size()) << " remaining)"; |
| 974 MaybeSignalCandidatesAllocationDone(); |
| 974 return; | 975 return; |
| 975 } | 976 } |
| 976 } | 977 } |
| 977 RTC_NOTREACHED(); | 978 RTC_NOTREACHED(); |
| 978 } | 979 } |
| 979 | 980 |
| 980 BasicPortAllocatorSession::PortData* BasicPortAllocatorSession::FindPort( | 981 BasicPortAllocatorSession::PortData* BasicPortAllocatorSession::FindPort( |
| 981 Port* port) { | 982 Port* port) { |
| 982 for (std::vector<PortData>::iterator it = ports_.begin(); | 983 for (std::vector<PortData>::iterator it = ports_.begin(); |
| 983 it != ports_.end(); ++it) { | 984 it != ports_.end(); ++it) { |
| (...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1517 ServerAddresses servers; | 1518 ServerAddresses servers; |
| 1518 for (size_t i = 0; i < relays.size(); ++i) { | 1519 for (size_t i = 0; i < relays.size(); ++i) { |
| 1519 if (relays[i].type == turn_type && SupportsProtocol(relays[i], type)) { | 1520 if (relays[i].type == turn_type && SupportsProtocol(relays[i], type)) { |
| 1520 servers.insert(relays[i].ports.front().address); | 1521 servers.insert(relays[i].ports.front().address); |
| 1521 } | 1522 } |
| 1522 } | 1523 } |
| 1523 return servers; | 1524 return servers; |
| 1524 } | 1525 } |
| 1525 | 1526 |
| 1526 } // namespace cricket | 1527 } // namespace cricket |
| OLD | NEW |