main: save does not hang, just does not report save success
This commit is contained in:
parent
73dd6d9154
commit
367002357f
@ -399,7 +399,9 @@ fn main() -> ! {
|
|||||||
if channel.is_none() || channel == Some(c) {
|
if channel.is_none() || channel == Some(c) {
|
||||||
let config = ChannelConfig::new(&mut channels, c);
|
let config = ChannelConfig::new(&mut channels, c);
|
||||||
match store.write_value(CHANNEL_CONFIG_KEY[c], &config, &mut store_value_buf) {
|
match store.write_value(CHANNEL_CONFIG_KEY[c], &config, &mut store_value_buf) {
|
||||||
Ok(()) => {}
|
Ok(()) => {
|
||||||
|
send_line(&mut socket, b"{}");
|
||||||
|
}
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
error!("unable to save channel {} config to flash: {:?}", c, e);
|
error!("unable to save channel {} config to flash: {:?}", c, e);
|
||||||
let _ = writeln!(socket, "{{\"error\":\"{:?}\"}}", e);
|
let _ = writeln!(socket, "{{\"error\":\"{:?}\"}}", e);
|
||||||
|
Loading…
Reference in New Issue
Block a user