Fix not found bug
This commit is contained in:
parent
4582d4a9d2
commit
c937c72b8a
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
bp = g_hash_table_lookup (app_ctx->used_buffer, &from->fd);
|
||||||
if (bp == NULL) {
|
if (bp == NULL) {
|
||||||
fprintf(stderr, "Unable to find a buffer for fd=%d url=%s in rtof\n", from->fd, from->url);
|
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));
|
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));
|
struct buffer_packet* bp = g_hash_table_lookup (app_ctx->used_buffer, &(fdinfo->fd));
|
||||||
if (bp == NULL) {
|
if (bp == NULL) {
|
||||||
fprintf(stderr, "Unable to find a buffer for fd=%d url=%s in wtof\n", fdinfo->fd, fdinfo->url);
|
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));
|
g_hash_table_remove(app_ctx->used_buffer, &(fdinfo->fd));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue