miniupnpd/upnpevents.c: Add log when error

This commit is contained in:
Thomas Bernard 2018-04-27 00:08:06 +02:00
parent 0e3dd7b3fa
commit 491ee9f8bf
1 changed files with 2 additions and 0 deletions

View File

@ -612,6 +612,8 @@ void upnpevents_processfds(fd_set *readset, fd_set *writeset)
obj->sub->notify = NULL;
/* remove also the subscriber from the list if there was an error */
if(obj->state == EError && obj->sub) {
syslog(LOG_ERR, "%s: %p, remove subscriber %s after an ERROR cb: %s",
"upnpevents_processfds", obj, obj->sub->uuid, obj->sub->callback);
LIST_REMOVE(obj->sub, entries);
free(obj->sub);
}