Skip to content

Commit

Permalink
Merge pull request #14 from wiktor-k/wiktor/minor-fixes
Browse files Browse the repository at this point in the history
Add printing any errors from handle_socket
  • Loading branch information
wiktor-k authored Feb 22, 2024
2 parents 26e93ef + c0fd47f commit c815ce2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/agent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,9 @@ pub trait Agent: 'static + Sync + Send + Sized {
let mut session = Session::new(agent, socket);

tokio::spawn(async move {
let _ = session.handle_socket().await;
if let Err(e) = session.handle_socket().await {
error!("Agent protocol error; error = {:?}", e);
}
});
}
Err(e) => {
Expand Down

0 comments on commit c815ce2

Please sign in to comment.