Fix: make sure we can exit the get_new_metadata loop
[babeltrace.git] / formats / lttng-live / lttng-live-comm.c
index 5843fd7c80eaaa5022427f55a6d4bed4f4e98487..e473181578142a560d206ce09bc915266e9f8351 100644 (file)
@@ -910,6 +910,10 @@ int get_new_metadata(struct lttng_live_ctx *ctx,
        }
 
        do {
+               if (lttng_live_should_quit()) {
+                       ret = -1;
+                       goto error;
+               }
                /*
                 * get_one_metadata_packet returns the number of bytes
                 * received, 0 when we have received everything, a
This page took 0.023051 seconds and 4 git commands to generate.