mirror of
https://github.com/wiiu-env/ftpiiu_plugin.git
synced 2024-12-23 11:21:49 +01:00
Always call shutdown for a socket
This commit is contained in:
parent
52766cdca1
commit
50600d3d82
@ -21,7 +21,6 @@ BackgroundThread::~BackgroundThread() {
|
|||||||
mutex.lock();
|
mutex.lock();
|
||||||
if (this->serverSocket >= 0) {
|
if (this->serverSocket >= 0) {
|
||||||
cleanup_ftp();
|
cleanup_ftp();
|
||||||
::shutdown(this->serverSocket, SHUT_WR);
|
|
||||||
network_close(this->serverSocket);
|
network_close(this->serverSocket);
|
||||||
this->serverSocket = -1;
|
this->serverSocket = -1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user