Skip to content
Snippets Groups Projects
Commit 6ff8a154 authored by Alvaro Liber Vallve Maidana's avatar Alvaro Liber Vallve Maidana
Browse files

Continuando con el Ctrl+C se cambian return por break.

Para cerrar de forma correcta los sockets.
parent d97441c1
No related branches found
No related tags found
No related merge requests found
......@@ -238,10 +238,10 @@ void UDP(char* HOSTNAME){
if (received_data_size < 1){
if ((received_data_size < 0) && ((errno == EAGAIN) || (errno == EWOULDBLOCK))){
printf("Error, no hay respuesta del servidor.\n");
return;
break;
}else{
printf("Error al recibir datos.\n");
return;
break;
}
}else {
printFrameUDP(buf, received_data_size);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment