Chromium Code Reviews

Unified Diff: webrtc/p2p/client/fakeportallocator.h

Issue 1857453002: Do not stop a session unless the candidate of a writable connection belongs to the (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Added tests Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: webrtc/p2p/client/fakeportallocator.h
diff --git a/webrtc/p2p/client/fakeportallocator.h b/webrtc/p2p/client/fakeportallocator.h
index fb188261a27b3ea726c0a6034bf3b06e4757fa03..1b98dd5bc3934ea9ed9a209c95adb3c438250429 100644
--- a/webrtc/p2p/client/fakeportallocator.h
+++ b/webrtc/p2p/client/fakeportallocator.h
@@ -118,7 +118,7 @@ class FakePortAllocatorSession : public PortAllocatorSession {
void AddPort(cricket::Port* port) {
port->set_component(component_);
- port->set_generation(0);
+ port->set_generation(generation());
port->SignalPortComplete.connect(
this, &FakePortAllocatorSession::OnPortComplete);
port->PrepareAddress();
« webrtc/p2p/base/p2ptransportchannel.cc ('K') | « webrtc/p2p/base/p2ptransportchannel_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine