Fix: sessiond: inverted condition checking for empty hash table
[lttng-tools.git] / src / bin / lttng-sessiond / session.cpp
index 304589068aaaf6a4d45c4431103b262a6665ff25..3dc8065569d2dfd850e7949912bc9e4dece9b3da 100644 (file)
@@ -391,7 +391,7 @@ static bool ltt_sessions_ht_empty(void)
 
        LTTNG_ASSERT(ltt_sessions_ht_by_name);
 
-       if (lttng_ht_get_count(ltt_sessions_ht_by_id) == 0) {
+       if (lttng_ht_get_count(ltt_sessions_ht_by_id) != 0) {
                /* Not empty.*/
                goto end;
        }
This page took 0.022938 seconds and 4 git commands to generate.