Skip to content

Commit d43be45

Browse files
committed
Drop data stream before waiting close code
1 parent 8c94c28 commit d43be45

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "async_ftp"
3-
version = "4.0.1"
3+
version = "4.0.2"
44
authors = ["Daniel García <[email protected]>", "Matt McCoy <[email protected]>"]
55
documentation = "https://docs.rs/async_ftp/"
66
repository = "https://github.com/dani-garcia/rust_async_ftp"

src/ftp.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,7 @@ impl FtpStream {
453453
Err(err) => return Err(FtpError::ConnectionError(err)),
454454
};
455455
}
456+
drop(data_stream);
456457

457458
self.read_response_in(close_code).await?;
458459
Ok(lines)

0 commit comments

Comments
 (0)