mirror of
https://github.com/wiiu-env/ftpiiu_plugin.git
synced 2024-12-23 03:11:49 +01:00
Add missing shudown call
This commit is contained in:
parent
63f21d5a18
commit
0b57f21408
@ -2,6 +2,7 @@
|
||||
#include "ftp.h"
|
||||
#include "net.h"
|
||||
#include <cstring>
|
||||
#include <sys/socket.h>
|
||||
|
||||
BackgroundThread *BackgroundThread::instance = nullptr;
|
||||
|
||||
@ -20,6 +21,7 @@ BackgroundThread::~BackgroundThread() {
|
||||
mutex.lock();
|
||||
if (this->serverSocket >= 0) {
|
||||
cleanup_ftp();
|
||||
::shutdown(this->serverSocket, SHUT_WR);
|
||||
network_close(this->serverSocket);
|
||||
this->serverSocket = -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user