mirror of
https://github.com/wiiu-env/ftpiiu_plugin.git
synced 2024-12-23 11:21:49 +01:00
Add missing shudown call
This commit is contained in:
parent
63f21d5a18
commit
0b57f21408
@ -2,6 +2,7 @@
|
|||||||
#include "ftp.h"
|
#include "ftp.h"
|
||||||
#include "net.h"
|
#include "net.h"
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
#include <sys/socket.h>
|
||||||
|
|
||||||
BackgroundThread *BackgroundThread::instance = nullptr;
|
BackgroundThread *BackgroundThread::instance = nullptr;
|
||||||
|
|
||||||
@ -20,6 +21,7 @@ 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