1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 16:28:12 -07:00

Fix infinite loop in KobaltServer.

This commit is contained in:
Cedric Beust 2016-02-25 07:42:41 +04:00
parent de4f84c66b
commit 05debcff07

View file

@ -63,6 +63,9 @@ public class KobaltServer @Inject constructor(val args: Args) : Runnable, IComma
line = ins.readLine() line = ins.readLine()
} }
} }
if (line == null) {
quit = true
}
} catch(ex: SocketException) { } catch(ex: SocketException) {
log(1, "Client disconnected, resetting") log(1, "Client disconnected, resetting")
clientSocket = serverSocket.accept() clientSocket = serverSocket.accept()