add network.__close

This commit is contained in:
MihailRis
2024-11-27 12:51:01 +03:00
parent 32ba027fac
commit 233bc3174c
2 changed files with 20 additions and 2 deletions
+4 -1
View File
@@ -296,7 +296,9 @@ public:
shutdown(descriptor, 2);
closesocket(descriptor);
}
thread->join();
if (thread) {
thread->join();
}
freeaddrinfo(addr);
}
@@ -369,6 +371,7 @@ public:
closesocket(descriptor);
}
thread->join();
thread = nullptr;
}
size_t getTotalUpload() const override {