From: Maxim Mamontov Date: Sat, 18 Oct 2014 20:10:25 +0000 (+0300) Subject: Fixed return value for serach methods. X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/5130ec50731e50037c30d3a1a4149fbc07cc0256 Fixed return value for serach methods. --- 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)));