Skip to content

Commit

Permalink
[wrt] Fix SSDP not retrying if no network interfaces are present on s…
Browse files Browse the repository at this point in the history
…tartup
  • Loading branch information
CapnBry committed Dec 31, 2018
1 parent 2927dfb commit e0dc69f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openwrt/package/ssdp-notify/src/ssdp-notify.c
Expand Up @@ -152,14 +152,14 @@ int main(int argc, char *argv[]) {

last_time = current_time;
} /* if have socket */
else if (lssdp.sock < 0 && elapsed >= 10)
else if (lssdp.sock <= 0 && elapsed >= 10)
{
/* This works around a problem where the interface list changes but
* IP_ADD_MEMBERSHIP fails with "No such device"
*/
if (lssdp_socket_create(&lssdp) != 0)
{
puts("SSDP create socket failed");
printf("SSDP create socket failed\n");
last_time = current_time;
}
} /* if no socket */
Expand Down

0 comments on commit e0dc69f

Please sign in to comment.