Do not remove kevent from closed request sockwt.
After a successful transfer pass EV_FLAG_CLOSING to the kevent delete function since the corresponding socket has been been closed and there is no kevent request record to delete. This prevents spurious error messages: kqueue.c:210: error: kevent() error 9 on 2391 filter:-1 flags:0x4000
This commit is contained in:
parent
c5c4d9e169
commit
5df410a53d
@ -391,7 +391,7 @@ static void upnp_event_recv(struct upnp_event_notify * obj)
|
||||
DPRINTF(E_DEBUG, L_HTTP, "%s: (%dbytes) %.*s\n", "upnp_event_recv",
|
||||
n, n, obj->buffer);
|
||||
obj->state = EFinished;
|
||||
event_module.del(&obj->ev, 0);
|
||||
event_module.del(&obj->ev, EV_FLAG_CLOSING);
|
||||
if(obj->sub)
|
||||
{
|
||||
obj->sub->seq++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user