diff options
Diffstat (limited to 'net/base/file_stream_posix.cc')
-rw-r--r-- | net/base/file_stream_posix.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/base/file_stream_posix.cc b/net/base/file_stream_posix.cc index 735f2b8..8a0f2e3 100644 --- a/net/base/file_stream_posix.cc +++ b/net/base/file_stream_posix.cc @@ -311,7 +311,8 @@ FileStream::FileStream(base::PlatformFile file, int flags) } FileStream::~FileStream() { - Close(); + if (auto_closed_) + Close(); } void FileStream::Close() { |