X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/d7e2dad86a72fd5a3cd8717a9e1518832c193a3e..d8845c7819caac09b95c4cdf1e8d48cc1cb1b7a6:/projects/stargazer/services_impl.cpp?ds=inline diff --git a/projects/stargazer/services_impl.cpp b/projects/stargazer/services_impl.cpp index bb9fdc1a..109a327b 100644 --- a/projects/stargazer/services_impl.cpp +++ b/projects/stargazer/services_impl.cpp @@ -107,7 +107,7 @@ while (csi != searchDescriptors.end()) { if (csi->second == si) (csi->second)++; - csi++; + ++csi; } data.remove(*si); @@ -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)));