diff options
Diffstat (limited to 'libs/IO/src/Reader.cc')
-rw-r--r-- | libs/IO/src/Reader.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/IO/src/Reader.cc b/libs/IO/src/Reader.cc index cbead31..8ac49c7 100644 --- a/libs/IO/src/Reader.cc +++ b/libs/IO/src/Reader.cc @@ -33,6 +33,10 @@ cReader::cReader() cReader::~cReader() { + if (fd > 0) { + close(fd); + fd = -1; + } } int cReader::Read(char* buf, int bufSize) |