We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 493d791 commit bfd536eCopy full SHA for bfd536e
src/messenger.rs
@@ -605,12 +605,16 @@ where
605
loop {
606
let mut to_sent = Cursor::new(Vec::new());
607
let state = session.step(data_received.as_deref(), &mut to_sent)?;
608
+
609
+ if state.has_sent_message() {
610
+ let authentication_response =
611
+ self.sasl_authentication(to_sent.into_inner()).await?;
612
+ data_received = Some(authentication_response.auth_bytes.0);
613
+ }
614
615
if !state.is_running() {
616
break;
617
}
-
- let authentication_response = self.sasl_authentication(to_sent.into_inner()).await?;
- data_received = Some(authentication_response.auth_bytes.0);
618
619
620
Ok(())
0 commit comments