Clean code
This commit is contained in:
parent
f72d528bef
commit
1dd7119094
1 changed files with 1 additions and 5 deletions
|
@ -193,11 +193,7 @@ int on_err(struct evt_core_ctx* ctx, struct evt_core_fdinfo* fdinfo) {
|
||||||
memset(bp, 0, sizeof(struct buffer_packet));
|
memset(bp, 0, sizeof(struct buffer_packet));
|
||||||
g_queue_push_tail(app_ctx->free_buffer, bp);
|
g_queue_push_tail(app_ctx->free_buffer, bp);
|
||||||
}
|
}
|
||||||
if (writew) {
|
if (writew) g_hash_table_remove (app_ctx->write_waiting, &(fdinfo->fd));
|
||||||
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);
|
|
||||||
}
|
|
||||||
|
|
||||||
// 3. If appears in the read waiting queue, remove it
|
// 3. If appears in the read waiting queue, remove it
|
||||||
g_queue_remove_all (app_ctx->read_waiting, &(fdinfo->fd));
|
g_queue_remove_all (app_ctx->read_waiting, &(fdinfo->fd));
|
||||||
|
|
Loading…
Reference in a new issue