Fixed bug #27266: wait-state debug message in pppMain occurs every ms

This commit is contained in:
goldsimon 2009-08-23 12:37:36 +00:00
parent 362a295e06
commit ce3082976c
2 changed files with 5 additions and 2 deletions

View File

@ -25,6 +25,9 @@ HISTORY
++ Bugfixes:
2009-08-23 Simon Goldschmidt
* ppp.c: bug #27266: wait-state debug message in pppMain occurs every ms
2009-08-23 Simon Goldschmidt
* udp.c: bug #27252: Address pointer invalid after freeing pbuf in UDP
receive callback

View File

@ -1537,8 +1537,8 @@ pppMain(void *arg)
if(c > 0) {
pppInProc(pd, p->payload, c);
} else {
PPPDEBUG((LOG_DEBUG, "pppMain: unit %d sio_read len=%d returned %d\n", pd, p->len, c));
sys_msleep(1); /* give other tasks a chance to run */
/* nothing received, give other tasks a chance to run */
sys_msleep(1);
}
}
}