Merge "adb: use asocket\'s close function when closing." am: 684d543922
am: 43c058e51a
* commit '43c058e51a652874cfdf0c687ba1dee18f13f993':
adb: use asocket's close function when closing.
Change-Id: I0681ff8c31c2f221e246a86857fbff779d2b7dcf
This commit is contained in:
commit
a41a0c2acc
|
@ -39,8 +39,6 @@
|
|||
#include "sysdeps/mutex.h"
|
||||
#include "transport.h"
|
||||
|
||||
static void local_socket_close(asocket* s);
|
||||
|
||||
static std::recursive_mutex& local_socket_list_lock = *new std::recursive_mutex();
|
||||
static unsigned local_socket_next_id = 1;
|
||||
|
||||
|
@ -118,7 +116,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…
Reference in New Issue