Skip to content

Commit c815ce2

Browse files
authored
Merge pull request #14 from wiktor-k/wiktor/minor-fixes
Add printing any errors from handle_socket
2 parents 26e93ef + c0fd47f commit c815ce2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/agent.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,9 @@ pub trait Agent: 'static + Sync + Send + Sized {
129129
let mut session = Session::new(agent, socket);
130130

131131
tokio::spawn(async move {
132-
let _ = session.handle_socket().await;
132+
if let Err(e) = session.handle_socket().await {
133+
error!("Agent protocol error; error = {:?}", e);
134+
}
133135
});
134136
}
135137
Err(e) => {

0 commit comments

Comments
 (0)