system/corennnnn
Révision | d179556680d2208effa78a658992aacdde504d8e (tree) |
---|---|
l'heure | 2016-07-19 04:47:45 |
Auteur | Josh Gao <jmgao@goog...> |
Commiter | android-build-merger |
adb: use asocket\'s close function when closing.
am: f71c01493a
Change-Id: Id77dd7ff1931f03ea7f1e0339eca6610e02e9122
@@ -43,8 +43,6 @@ | ||
43 | 43 | using std::recursive_mutex; |
44 | 44 | #endif |
45 | 45 | |
46 | -static void local_socket_close(asocket* s); | |
47 | - | |
48 | 46 | static recursive_mutex& local_socket_list_lock = *new recursive_mutex(); |
49 | 47 | static unsigned local_socket_next_id = 1; |
50 | 48 |
@@ -128,7 +126,7 @@ void close_all_sockets(atransport *t) | ||
128 | 126 | restart: |
129 | 127 | for (s = local_socket_list.next; s != &local_socket_list; s = s->next) { |
130 | 128 | if (s->transport == t || (s->peer && s->peer->transport == t)) { |
131 | - local_socket_close(s); | |
129 | + s->close(s); | |
132 | 130 | goto restart; |
133 | 131 | } |
134 | 132 | } |