mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-04-10 09:35:31 +02:00
kqueue: Fix EV_EOF support
This commit is contained in:
parent
a7f3f4c362
commit
fbe9470657
|
|
@ -185,11 +185,10 @@ int mux_kqueue__handle(void)
|
|||
for(int i=0; i<event_count; i++){
|
||||
context = event_list[i].udata;
|
||||
if(context->ident == id_client){
|
||||
loop_handle_reads_writes(context, event_list[i].filter);
|
||||
if(event_list[i].flags & (EV_EOF | EV_ERROR)){
|
||||
do_disconnect(context, MOSQ_ERR_CONN_LOST);
|
||||
continue;
|
||||
}
|
||||
loop_handle_reads_writes(context, event_list[i].filter);
|
||||
}else if(context->ident == id_listener){
|
||||
listensock = event_list[i].udata;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue