diff options
Diffstat (limited to 'test/network/fake_network_socket_server.cc')
-rw-r--r-- | test/network/fake_network_socket_server.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/network/fake_network_socket_server.cc b/test/network/fake_network_socket_server.cc index 60dfbe33d5..bee2846be7 100644 --- a/test/network/fake_network_socket_server.cc +++ b/test/network/fake_network_socket_server.cc @@ -280,7 +280,7 @@ EmulatedEndpointImpl* FakeNetworkSocketServer::GetEndpointNode( } void FakeNetworkSocketServer::Unregister(FakeNetworkSocket* socket) { - rtc::CritScope crit(&lock_); + MutexLock lock(&lock_); sockets_.erase(absl::c_find(sockets_, socket)); } @@ -297,7 +297,7 @@ rtc::AsyncSocket* FakeNetworkSocketServer::CreateAsyncSocket(int family, RTC_DCHECK(thread_) << "must be attached to thread before creating sockets"; FakeNetworkSocket* out = new FakeNetworkSocket(this, thread_); { - rtc::CritScope crit(&lock_); + MutexLock lock(&lock_); sockets_.push_back(out); } return out; |