code cleanup

This commit is contained in:
vemax78 2013-07-15 18:47:31 +02:00
parent 94cf13649a
commit fc30c7d54b
1 changed files with 2 additions and 1 deletions

View File

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