From 3a24238960cdedb3a46eb3c5d2eee5d2bf8d806f Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Fri, 7 Jun 2013 17:06:39 -0700 Subject: gras: input fail safety check for msgs only ports --- lib/task_fail.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/task_fail.cpp') diff --git a/lib/task_fail.cpp b/lib/task_fail.cpp index 415c13b..061ee9a 100644 --- a/lib/task_fail.cpp +++ b/lib/task_fail.cpp @@ -33,7 +33,7 @@ void BlockActor::input_fail(const size_t i) } //check that the input is not already maxed - if (data->input_queues.is_front_maximal(i)) + if (not data->input_queues.empty(i) and data->input_queues.is_front_maximal(i)) { throw std::runtime_error("input_fail called on maximum_items buffer in " + name); } -- cgit