summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/users.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 493cbbade..8c7f1409b 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -61,7 +61,7 @@ userrec::userrec()
void userrec::CloseSocket()
{
- shutdown(this->fd);
+ shutdown(this->fd,2);
close(this->fd);
}
@@ -75,7 +75,7 @@ int userrec::ReadData(void* buffer, size_t size)
{
if (this->fd > -1)
{
- return read(this->fd, buffer, size)
+ return read(this->fd, buffer, size);
}
else return 0;
}