mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
update
This commit is contained in:
parent
42253e2493
commit
95c1ca168d
2 changed files with 9 additions and 6 deletions
|
|
@ -695,7 +695,9 @@ public:
|
|||
thread = std::make_unique<std::thread>([this]() {
|
||||
util::Buffer<char> buffer(16'384);
|
||||
while (open) {
|
||||
logger.info() << "SocketUdpConnection listening";
|
||||
int size = recv(descriptor, buffer.data(), buffer.size(), 0);
|
||||
logger.info() << "SocketUdpConnection received " << size;
|
||||
if (size <= 0) {
|
||||
if (!open) break;
|
||||
closesocket(descriptor);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue