adb: use asocket\'s close function when closing.
am: f71c01493a
Change-Id: Id77dd7ff1931f03ea7f1e0339eca6610e02e9122
This commit is contained in:
commit
d179556680
1 changed files with 1 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue