commit | 86d01dec4b8690d94053fbe86d46c9ae26de9ae6 | [log] [tgz] |
---|---|---|
author | Brad Fitzpatrick <bradfitz@android.com> | Tue Sep 14 10:22:14 2010 -0700 |
committer | Brad Fitzpatrick <bradfitz@android.com> | Tue Sep 14 10:22:14 2010 -0700 |
tree | 11394cc787a1747202f23123a9c37680f4f109fc | |
parent | 09dd3e57b920c8f65cb486313a4c0f35b8cb9f46 [diff] |
Add missing lock in SocketListener. Change-Id: I3d97a06381fce67ef13b1ccdeaa4e8e2830ab2aa
diff --git a/libsysutils/src/SocketListener.cpp b/libsysutils/src/SocketListener.cpp index 7af221f..1bc06db 100644 --- a/libsysutils/src/SocketListener.cpp +++ b/libsysutils/src/SocketListener.cpp
@@ -198,6 +198,7 @@ pthread_mutex_unlock(&mClientsLock); } FD_CLR(fd, &read_fds); + pthread_mutex_lock(&mClientsLock); continue; } }