Fix: don't wait for initial statedump when 0 session active
[lttng-ust.git] / liblttng-ust / lttng-ust-comm.c
index 0c6db9fea3326a835d7423357e5719b67c497246..e392e460cca2dada53036fc622adbc8b3cf87355 100644 (file)
@@ -655,6 +655,10 @@ int handle_register_done(struct sock_info *sock_info)
        sock_info->registration_done = 1;
 
        decrement_sem_count(1);
+       if (!sock_info->statedump_pending) {
+               sock_info->initial_statedump_done = 1;
+               decrement_sem_count(1);
+       }
 
        return 0;
 }
This page took 0.022702 seconds and 4 git commands to generate.