Skip to content

Commit

Permalink
fxi spam of connection closed before finishing
Browse files Browse the repository at this point in the history
  • Loading branch information
SkyfallWasTaken committed Aug 28, 2024
1 parent f3679e4 commit dd7a8c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/vortex-smtp/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ async fn process<T: Fn(&str) -> bool>(
socket.write_all(messages::OK).await?;
}
Command::Quit => {
state.finished = true;
socket.write_all(messages::BYE).await?;
socket.shutdown().await?;
return Ok(state);
Expand Down

0 comments on commit dd7a8c7

Please sign in to comment.