Fix not found bug

This commit is contained in:
Quentin 2019-05-28 16:13:42 +02:00
parent 4582d4a9d2
commit c937c72b8a

View file

@ -139,6 +139,7 @@ void mv_buffer_rtof(struct buffer_resources *app_ctx, struct evt_core_fdinfo* fr
bp = g_hash_table_lookup (app_ctx->used_buffer, &from->fd);
if (bp == NULL) {
fprintf(stderr, "Unable to find a buffer for fd=%d url=%s in rtof\n", from->fd, from->url);
return;
}
g_hash_table_remove(app_ctx->used_buffer, &(from->fd));
@ -149,6 +150,7 @@ void mv_buffer_wtof(struct buffer_resources *app_ctx, struct evt_core_fdinfo* fd
struct buffer_packet* bp = g_hash_table_lookup (app_ctx->used_buffer, &(fdinfo->fd));
if (bp == NULL) {
fprintf(stderr, "Unable to find a buffer for fd=%d url=%s in wtof\n", fdinfo->fd, fdinfo->url);
return;
}
g_hash_table_remove(app_ctx->used_buffer, &(fdinfo->fd));