code cleanup

This commit is contained in:
vemax78 2013-07-15 18:47:31 +02:00
parent 94cf13649a
commit fc30c7d54b

View File

@ -487,12 +487,13 @@ int ac_execute(void) {
} }
/* */ /* */
for (;;) { while (g_ac.running) {
/* Receive packet */ /* Receive packet */
isrecvpacket = 0; isrecvpacket = 0;
buffersize = sizeof(buffer); buffersize = sizeof(buffer);
index = capwap_recvfrom(fds, fdscount, buffer, &buffersize, &recvfromaddr, &recvtoaddr, NULL); index = capwap_recvfrom(fds, fdscount, buffer, &buffersize, &recvfromaddr, &recvtoaddr, NULL);
if (!g_ac.running) { if (!g_ac.running) {
capwap_logging_debug("Closing AC");
break; break;
} }