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

Fix KobaltClient's debug mode.

This commit is contained in:
Cedric Beust 2016-01-29 23:25:20 +04:00
parent bf36a9f247
commit 66c4f9a1e0

View file

@ -34,7 +34,7 @@ public class KobaltClient @Inject constructor() : Runnable {
while (! done && line != null) {
log(1, "Received from server:\n" + line)
val jo = JsonParser().parse(line) as JsonObject
if (jo.has("name") && "Quit" == jo.get("name").asString) {
if (jo.has("name") && "quit" == jo.get("name").asString.toLowerCase()) {
log(1, "Quitting")
// outgoing!!.println("{ \"name\": \"Quit\" }")
done = true