Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 02c8a9cf authored by Nick Kralevich's avatar Nick Kralevich Committed by Android Git Automerger
Browse files

am 18f6d964: am f819d023: Merge "libsysutils: SocketListener: handle recv errors more gracefully."

* commit '18f6d964':
  libsysutils: SocketListener: handle recv errors more gracefully.
parents 81ce51da 18f6d964
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -213,8 +213,9 @@ void SocketListener::runListener() {
            it = pendingList->begin();
            SocketClient* c = *it;
            pendingList->erase(it);
            /* Process it, if false is returned, remove and destroy it */
            if (!onDataAvailable(c)) {
            /* Process it, if false is returned and our sockets are
             * connection-based, remove and destroy it */
            if (!onDataAvailable(c) && mListen) {
                /* Remove the client from our array */
                pthread_mutex_lock(&mClientsLock);
                for (it = mClients->begin(); it != mClients->end(); ++it) {