mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 03:17:34 +00:00
AK+ProtocolServer: Properly close download stream fd's
This makes the issue of running out of openable pipes in the ProtocolServer process much less likely (but still possible).
This commit is contained in:
parent
bdd4b99d72
commit
6422a04cda
2 changed files with 5 additions and 2 deletions
|
@ -54,8 +54,9 @@ public:
|
|||
~InputFileStream()
|
||||
{
|
||||
if (m_file) {
|
||||
fflush(m_file);
|
||||
if (m_owned)
|
||||
fflush(m_file);
|
||||
fclose(m_file);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue