Now closing client socket after use
This commit is contained in:
parent
0a2748f84b
commit
7fe03d2dad
1 changed files with 3 additions and 0 deletions
|
@ -32,6 +32,9 @@ Socket::Socket(SOCKET_T socket)
|
||||||
}
|
}
|
||||||
|
|
||||||
Socket::~Socket(void) {
|
Socket::~Socket(void) {
|
||||||
|
if(d->socket){
|
||||||
|
close(d->socket);
|
||||||
|
}
|
||||||
delete d;
|
delete d;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue