From 06112af3e11c93cbb09b3a47f7fc6fdf07e24c59 Mon Sep 17 00:00:00 2001 From: Matt Hill Date: Wed, 2 Jul 2014 19:48:59 -0400 Subject: [PATCH] Added return false when data is not written --- src/daemon.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/daemon.cpp b/src/daemon.cpp index 7883bd6..40b37dd 100644 --- a/src/daemon.cpp +++ b/src/daemon.cpp @@ -293,6 +293,7 @@ bool writeToQueue(std::string jsonResult) catch (const std::runtime_error& error) { LOG4CPLUS_WARN(logger, "Error writing to Beanstalk. Result has not been saved."); + return false; } return true; }