We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 493d791 commit 47d1844Copy full SHA for 47d1844
src/messenger.rs
@@ -605,12 +605,14 @@ 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
- if !state.is_running() {
+
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
+ } else {
614
break;
615
}
-
- let authentication_response = self.sasl_authentication(to_sent.into_inner()).await?;
- data_received = Some(authentication_response.auth_bytes.0);
616
617
618
Ok(())
0 commit comments