summaryrefslogtreecommitdiff
path: root/thrd.cpp
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2013-04-06 13:14:46 +0200
committerPaul Buetow <paul@buetow.org>2013-04-06 13:14:46 +0200
commit07706f56cd421bf8b101a5c0fe44674d36e161a0 (patch)
treebec8b45765788370fbd148d68e05d8b437e60670 /thrd.cpp
parent56187184e11b085b82584d3b088c62f427aae83c (diff)
tagging ychat-0.5.1ychat-0.5.1
Diffstat (limited to 'thrd.cpp')
-rwxr-xr-xthrd.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/thrd.cpp b/thrd.cpp
index 7c9be50..4bac39e 100755
--- a/thrd.cpp
+++ b/thrd.cpp
@@ -4,7 +4,7 @@
#define THRD_CXX
#include "thrd.h"
-#include "SOCK.h"
+#include "s_sock.h"
using namespace std;
@@ -16,12 +16,13 @@ thrd::thrd( int i_sock )
thrd::~thrd()
{
shutdown ( get_sock() , 2 );
+ close ( get_sock() );
}
void
thrd::run()
{
- SOCK::get().read_write( this, i_sock );
+ s_sock::get().read_write( this, i_sock );
}
#endif