mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
add network.__close
This commit is contained in:
parent
32ba027fac
commit
233bc3174c
2 changed files with 20 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue