Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
teliod: Stop quitting daemon if invalid command received
Browse files Browse the repository at this point in the history
lcruz99 committed Dec 11, 2024
1 parent 2fa2226 commit 4cd24a8
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion clis/teliod/src/command_listener.rs
Original file line number Diff line number Diff line change
@@ -88,7 +88,6 @@ impl CommandListener {
connection.respond(response.serialize()).await?;
Ok(command)
} else {
error!("Received invalid command from client: {}", command_str);
connection
.respond(
CommandResponse::Err(format!("Invalid command: {}", command_str)).serialize(),
2 changes: 1 addition & 1 deletion clis/teliod/src/daemon.rs
Original file line number Diff line number Diff line change
@@ -256,7 +256,7 @@ pub async fn daemon_event_loop(config: TeliodDaemonConfig) -> Result<(), TeliodE
info!("Client command {:?} executed successfully", command);
}
Err(err) => {
break Err(err);
error!("Received invalid command from client: {}", err);
}
}
},

0 comments on commit 4cd24a8

Please sign in to comment.