mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
test
This commit is contained in:
parent
073b35fdd6
commit
a8d37b8e70
1 changed files with 2 additions and 1 deletions
|
|
@ -715,9 +715,10 @@ public:
|
|||
int len = sendto(descriptor, buffer, length, 0,
|
||||
(sockaddr*)&addr, sizeof(addr));
|
||||
if (len < 0) {
|
||||
logger.info() << "SocketUdpConnection closed";
|
||||
auto err = handle_socket_error("udp sendto failed");
|
||||
closesocket(descriptor);
|
||||
state = ConnectionState::CLOSED;
|
||||
logger.error() << "SocketUdpConnection sendto: " << err.what();
|
||||
} else totalUpload += len;
|
||||
|
||||
return len;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue