aboutsummaryrefslogtreecommitdiff
path: root/hbak_common
diff options
context:
space:
mode:
authorHimbeerserverDE <himbeerserverde@gmail.com>2024-02-14 16:42:14 +0100
committerHimbeerserverDE <himbeerserverde@gmail.com>2024-02-14 16:42:14 +0100
commit8781d3e225877908e264128c307cb153e594431f (patch)
tree97095c901fb45e80bc80ce06d101f339360180b5 /hbak_common
parentc2e176f86a0c9a2f4f3e681969d93f8f472eb89d (diff)
debug: print whether TxError sending returns
Diffstat (limited to 'hbak_common')
-rw-r--r--hbak_common/src/conn.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/hbak_common/src/conn.rs b/hbak_common/src/conn.rs
index e50d868..e97c2b2 100644
--- a/hbak_common/src/conn.rs
+++ b/hbak_common/src/conn.rs
@@ -449,10 +449,13 @@ impl StreamConn<Active> {
while match send_chunk(&stream_conn.read().unwrap(), &mut r) {
Ok(is_data_left) => is_data_left,
Err(e) => {
+ println!("[dbg] txerr");
stream_conn
.read()
.unwrap()
- .send_message(&StreamMessage::End(Err(RemoteError::TxError)))?;
+ .send_message(&StreamMessage::End(Err(RemoteError::TxError)))
+ .ok();
+ println!("[dbg] txret");
return Err(e);
}
} {}