diff --git a/libfreerdp/codec/rfx.c b/libfreerdp/codec/rfx.c index 26825a89d..f09029e3d 100644 --- a/libfreerdp/codec/rfx.c +++ b/libfreerdp/codec/rfx.c @@ -312,8 +312,7 @@ RFX_TILE* rfx_tile_pool_take(RFX_CONTEXT* context) { RFX_TILE* tile = NULL; - if (WaitForSingleObject(Queue_Event(context->priv->TilePool), 0) == WAIT_OBJECT_0) - tile = Queue_Dequeue(context->priv->TilePool); + tile = Queue_Dequeue(context->priv->TilePool); if (!tile) {