From c7f738b4134da36eabafcc74b73df8cf3017b4f8 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Tue, 4 Dec 2018 00:30:58 +0100 Subject: [PATCH] pipe: fix refactoring mistake --- src/villas-pipe.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/villas-pipe.cpp b/src/villas-pipe.cpp index 7de535f9a..a4bfd6f7e 100644 --- a/src/villas-pipe.cpp +++ b/src/villas-pipe.cpp @@ -144,7 +144,7 @@ static void * send_loop(void *ctx) while (!io_eof(dirs->send.io)) { allocated = sample_alloc_many(&dirs->send.pool, smps, dirs->send.node->out.vectorize); - if (ret < 0) + if (allocated < 0) throw RuntimeError("Failed to get {} samples out of send pool ({}).", dirs->send.node->out.vectorize, ret); else if (allocated < dirs->send.node->out.vectorize) logger->warn("Send pool underrun");