mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 00:17:11 -07:00
Rename.
This commit is contained in:
parent
e285a6a790
commit
42eb5a48d8
1 changed files with 5 additions and 5 deletions
|
@ -83,19 +83,19 @@ public class KobaltServer @Inject constructor(val args: Args) : Runnable, IComma
|
|||
private fun runCommand(jo: JsonObject) {
|
||||
val command = jo.get("name").asString
|
||||
if (command != null) {
|
||||
COMMANDS.getOrElse(command, { PingCommand() }).run(this, jo)
|
||||
COMMANDS.getOrElse(command, { COMMANDS.get("ping") })!!.run(this, jo)
|
||||
} else {
|
||||
error("Did not find a name in command: $jo")
|
||||
}
|
||||
}
|
||||
|
||||
override fun sendData(info: String) {
|
||||
override fun sendData(content: String) {
|
||||
if (outgoing != null) {
|
||||
outgoing!!.println(info)
|
||||
outgoing!!.println(content)
|
||||
} else {
|
||||
log1("Queuing $info")
|
||||
log1("Queuing $content")
|
||||
synchronized(pending) {
|
||||
pending.add(info)
|
||||
pending.add(content)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue