Skip to content

Commit 2657c32

Browse files
committed
teliod: Stop quitting daemon if invalid command received
1 parent 5b6cabd commit 2657c32

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

clis/teliod/src/command_listener.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ impl CommandListener {
8888
connection.respond(response.serialize()).await?;
8989
Ok(command)
9090
} else {
91-
error!("Received invalid command from client: {}", command_str);
9291
connection
9392
.respond(
9493
CommandResponse::Err(format!("Invalid command: {}", command_str)).serialize(),

clis/teliod/src/daemon.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ pub async fn daemon_event_loop(config: TeliodDaemonConfig) -> Result<(), TeliodE
256256
info!("Client command {:?} executed successfully", command);
257257
}
258258
Err(err) => {
259-
break Err(err);
259+
error!("Received invalid command from client: {}", err);
260260
}
261261
}
262262
},

0 commit comments

Comments
 (0)