diff --git a/upnp/src/genlib/miniserver/miniserver.c b/upnp/src/genlib/miniserver/miniserver.c index f8c441d..5f08443 100644 --- a/upnp/src/genlib/miniserver/miniserver.c +++ b/upnp/src/genlib/miniserver/miniserver.c @@ -416,6 +416,8 @@ RunMiniServer( MiniServerSockArray * miniSock ) UPNP_SOCKETERROR ) { UpnpPrintf( UPNP_CRITICAL, SSDP, __FILE__, __LINE__, "Error in select call!\n" ); + /* Avoid 100% CPU in case of repeated error in select() */ + isleep( 1 ); continue; } else { if( FD_ISSET( miniServSock, &rdSet ) ) {