From 5130ec50731e50037c30d3a1a4149fbc07cc0256 Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Sat, 18 Oct 2014 23:10:25 +0300 Subject: [PATCH] Fixed return value for serach methods. --- projects/stargazer/services_impl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/stargazer/services_impl.cpp b/projects/stargazer/services_impl.cpp index bb9fdc1a..90c23f81 100644 --- a/projects/stargazer/services_impl.cpp +++ b/projects/stargazer/services_impl.cpp @@ -192,7 +192,7 @@ assert(service != NULL && "Pointer to service is not null"); STG_LOCKER lock(&mutex); if (data.empty()) - return false; + return true; const_iterator si(std::find(data.begin(), data.end(), SERVICE_CONF(name))); @@ -211,7 +211,7 @@ assert(service != NULL && "Pointer to service is not null"); STG_LOCKER lock(&mutex); if (data.empty()) - return false; + return true; const_iterator si(std::find(data.begin(), data.end(), SERVICE_CONF(name))); -- 2.43.2