Fixed null members in stream configs causing failures
This commit is contained in:
parent
9a22177300
commit
d5dbb57c84
2 changed files with 2 additions and 0 deletions
|
@ -299,6 +299,7 @@ namespace Controller {
|
|||
void writeConfig(){
|
||||
writeProtocols();
|
||||
jsonForEach(Storage["streams"], it){
|
||||
it->removeNullMembers();
|
||||
writeStream(it.key(), *it);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -42,6 +42,7 @@ namespace Controller {
|
|||
std::string prevState = data["error"].asStringRef();
|
||||
data["online"] = (std::string)"Checking...";
|
||||
data.removeMember("error");
|
||||
data.removeNullMembers();
|
||||
switch (Util::getStreamStatus(name)){
|
||||
case STRMSTAT_OFF:
|
||||
//Do nothing
|
||||
|
|
Loading…
Add table
Reference in a new issue