From 05debcff07abca9b236ea17977768358aed97c12 Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Thu, 25 Feb 2016 07:42:41 +0400 Subject: [PATCH] Fix infinite loop in KobaltServer. --- src/main/kotlin/com/beust/kobalt/app/remote/KobaltServer.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/kotlin/com/beust/kobalt/app/remote/KobaltServer.kt b/src/main/kotlin/com/beust/kobalt/app/remote/KobaltServer.kt index b653356d..2690952a 100644 --- a/src/main/kotlin/com/beust/kobalt/app/remote/KobaltServer.kt +++ b/src/main/kotlin/com/beust/kobalt/app/remote/KobaltServer.kt @@ -63,6 +63,9 @@ public class KobaltServer @Inject constructor(val args: Args) : Runnable, IComma line = ins.readLine() } } + if (line == null) { + quit = true + } } catch(ex: SocketException) { log(1, "Client disconnected, resetting") clientSocket = serverSocket.accept()