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

Commit 29aa08f8 authored by Josh Gao's avatar Josh Gao Committed by android-build-merger
Browse files

adb: use asocket\\\'s close function when closing. am: f71c0149 am: d1795566

am: e2a58464

Change-Id: I089c7390c4e5f325b3c6e8ff54012430a436c05d
parents 163802c2 e2a58464
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -43,8 +43,6 @@
using std::recursive_mutex;
#endif

static void local_socket_close(asocket* s);

static recursive_mutex& local_socket_list_lock = *new recursive_mutex();
static unsigned local_socket_next_id = 1;

@@ -128,7 +126,7 @@ void close_all_sockets(atransport *t)
restart:
    for (s = local_socket_list.next; s != &local_socket_list; s = s->next) {
        if (s->transport == t || (s->peer && s->peer->transport == t)) {
            local_socket_close(s);
            s->close(s);
            goto restart;
        }
    }