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:
parent
bf36a9f247
commit
66c4f9a1e0
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue