From f738b9f86c101b9cd6f33b3413d77d49a818f22b Mon Sep 17 00:00:00 2001 From: Samuel Carlsson Date: Sat, 12 Feb 2022 20:53:38 +0100 Subject: [PATCH] adbserver: no client threads --- src/se/vidstige/jadb/server/SocketServer.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/se/vidstige/jadb/server/SocketServer.java b/src/se/vidstige/jadb/server/SocketServer.java index 85c27ff..c3d705e 100644 --- a/src/se/vidstige/jadb/server/SocketServer.java +++ b/src/se/vidstige/jadb/server/SocketServer.java @@ -40,9 +40,7 @@ public abstract class SocketServer implements Runnable { while (true) { Socket c = socket.accept(); - Thread clientThread = new Thread(createResponder(c), "AdbClientWorker"); - clientThread.setDaemon(true); - clientThread.start(); + createResponder(c).run(); } } catch (IOException e) { // Empty on purpose