mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-14 14:46:12 -04:00
Automated Code Change
PiperOrigin-RevId: 850400587
This commit is contained in:
@@ -42,7 +42,7 @@ std::string WifiDirectServerSocket::GetIPAddress() const {
|
||||
}
|
||||
|
||||
void WifiDirectServerSocket::SetIPAddress(std::string ip_address) {
|
||||
absl::MutexLock lock(&mutex_);
|
||||
absl::MutexLock lock(mutex_);
|
||||
if (ip_address.empty()) {
|
||||
return;
|
||||
}
|
||||
@@ -50,7 +50,7 @@ void WifiDirectServerSocket::SetIPAddress(std::string ip_address) {
|
||||
}
|
||||
|
||||
std::unique_ptr<api::WifiDirectSocket> WifiDirectServerSocket::Accept() {
|
||||
absl::MutexLock lock(&mutex_);
|
||||
absl::MutexLock lock(mutex_);
|
||||
if (server_socket_accepted_connection_) {
|
||||
LOG(INFO) << "Server socket has already accepted a connection. Return.";
|
||||
return nullptr;
|
||||
@@ -120,7 +120,7 @@ bool WifiDirectServerSocket::Listen(int port) {
|
||||
return false;
|
||||
}
|
||||
LOG(INFO) << "Notify the server socket is started.";
|
||||
absl::MutexLock lock(&mutex_);
|
||||
absl::MutexLock lock(mutex_);
|
||||
is_listen_started_ = true;
|
||||
is_listen_ready_.SignalAll();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user