make sure /bridge reload works

This commit is contained in:
NikkyAI 2018-02-14 18:04:04 +01:00
parent 51b184266b
commit 7b20616e0b
2 changed files with 2 additions and 1 deletions

View File

@ -39,6 +39,7 @@ class HttpStreamConnection(getClosure: () -> HttpGet,
onClose()
return
} else {
instance.debug("Bridge Connection accepted")
setSuccess(true) //TODO: pass message
}

View File

@ -73,7 +73,7 @@ object MessageHandler {
}
fun transmit(msg: ApiMessage) {
if (connected && streamConnection.isAlive) {
if ((connected || connecting) && streamConnection.isAlive) {
instance.debug("Transmitting: " + msg)
transmitMessage(msg)
}