mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
fix
This commit is contained in:
parent
2d1c69ee7e
commit
6eda819011
3 changed files with 4 additions and 4 deletions
|
|
@ -696,7 +696,8 @@ public:
|
|||
while (open) {
|
||||
int size = recv(descriptor, buffer.data(), buffer.size(), 0);
|
||||
if (size <= 0) {
|
||||
logger.error() <<id <<"udp connection " << id << handle_socket_error(" recv error").what();
|
||||
logger.error() << "udp connection " << id
|
||||
<< handle_socket_error(" recv error").what();
|
||||
if (!open) break;
|
||||
closesocket(descriptor);
|
||||
state = ConnectionState::CLOSED;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue