Native fixed crash on no connection

Fixes #250
This commit is contained in:
M66B 2016-01-24 16:03:46 +01:00
parent 164c4002fb
commit af1f256664
1 changed files with 1 additions and 1 deletions

View File

@ -1075,7 +1075,7 @@ jboolean handle_udp(const struct arguments *args, const uint8_t *buffer, size_t
if (sendto(cur->socket, buffer + dataoff, datalen, MSG_NOSIGNAL,
(const struct sockaddr *) &server, sizeof(server)) != datalen) {
log_android(ANDROID_LOG_ERROR, "UDP sendto error %s:%s", errno, strerror(errno));
log_android(ANDROID_LOG_ERROR, "UDP sendto error %d: %s", errno, strerror(errno));
cur->stop = 1;
return 0;
}