From 0b57f214086a5480a43818553c53192690d3e8f9 Mon Sep 17 00:00:00 2001 From: Maschell Date: Mon, 7 Feb 2022 18:46:31 +0100 Subject: [PATCH] Add missing shudown call --- src/BackgroundThread.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/BackgroundThread.cpp b/src/BackgroundThread.cpp index 4c0dad4..8a1bd63 100644 --- a/src/BackgroundThread.cpp +++ b/src/BackgroundThread.cpp @@ -2,6 +2,7 @@ #include "ftp.h" #include "net.h" #include +#include 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; }