Skip to content

Commit 52f370b

Browse files
Leonardo Alminanaedsiper
authored andcommitted
downstream: fixed the event loop registration detection mechanism
Signed-off-by: Leonardo Alminana <[email protected]>
1 parent 69ee055 commit 52f370b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/flb_downstream.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ static int prepare_destroy_conn(struct flb_connection *connection)
188188
flb_trace("[downstream] destroy connection #%i to %s",
189189
connection->fd, flb_connection_get_remote_address(connection));
190190

191-
if (stream->flags & FLB_IO_ASYNC) {
191+
if(MK_EVENT_IS_REGISTERED((&connection->event))) {
192192
mk_event_del(connection->evl, &connection->event);
193193
}
194194

0 commit comments

Comments
 (0)