Properly exit the upnp device pulse when a loop is detected.

This commit is contained in:
Josh Elsasser 2006-09-26 18:43:02 +00:00
parent 8a7edafb4e
commit 5b58c7aec0
1 changed files with 2 additions and 0 deletions

View File

@ -679,6 +679,8 @@ devicePulse( tr_upnp_device_t * dev, tr_fd_t * fdlimit, int port )
dev->host, dev->state );
dev->state = UPNPDEV_STATE_ERROR;
dev->looping = 0;
killHttp( fdlimit, &dev->http );
return 1;
}
laststate = dev->state;