miniupnpd/upnpevents.c: Add log when error
This commit is contained in:
parent
0e3dd7b3fa
commit
491ee9f8bf
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue