mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Capitalization.
This commit is contained in:
parent
fae115ef91
commit
0ae714e06e
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue