summaryrefslogtreecommitdiffstats
path: root/adb/sockets.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'adb/sockets.cpp')
-rw-r--r--adb/sockets.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/adb/sockets.cpp b/adb/sockets.cpp
index 31b5443..3919147 100644
--- a/adb/sockets.cpp
+++ b/adb/sockets.cpp
@@ -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;
}
}