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

Capitalization.

This commit is contained in:
Cedric Beust 2015-10-22 02:26:56 -07:00
parent fae115ef91
commit 0ae714e06e

View file

@ -62,14 +62,14 @@ public class KobaltServer @Inject constructor(val args: Args) : Runnable, IComma
while (!quit && line != null) { while (!quit && line != null) {
log1("Received from client $line") log1("Received from client $line")
val jo = JsonParser().parse(line) as JsonObject val jo = JsonParser().parse(line) as JsonObject
if ("Quit" == jo.get("name").asString) { if ("quit" == jo.get("name").asString) {
log1("Quitting") log1("Quitting")
quit = true quit = true
} else { } else {
runCommand(jo) runCommand(jo)
// Done, send a quit to the client // Done, send a quit to the client
sendData("{ \"name\": \"Quit\" }") sendData("{ \"name\": \"quit\" }")
line = ins.readLine() line = ins.readLine()
} }