summaryrefslogtreecommitdiff
path: root/libs/IO/src/Reader.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/IO/src/Reader.cc')
-rw-r--r--libs/IO/src/Reader.cc4
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)