Clean code

This commit is contained in:
Quentin Dufour 2019-04-04 11:32:11 +02:00
parent f72d528bef
commit 1dd7119094

View file

@ -193,11 +193,7 @@ int on_err(struct evt_core_ctx* ctx, struct evt_core_fdinfo* fdinfo) {
memset(bp, 0, sizeof(struct buffer_packet));
g_queue_push_tail(app_ctx->free_buffer, bp);
}
if (writew) {
fprintf(stderr, "begin removing entry in app_ctx->write_waiting for %s\n", fdinfo->url);
g_hash_table_remove (app_ctx->write_waiting, &(fdinfo->fd));
fprintf(stderr, "end removing entry in app_ctx->write_waiting for %s\n", fdinfo->url);
}
if (writew) g_hash_table_remove (app_ctx->write_waiting, &(fdinfo->fd));
// 3. If appears in the read waiting queue, remove it
g_queue_remove_all (app_ctx->read_waiting, &(fdinfo->fd));