grpc-proxy: Terminate thread when we're exiting
[src/agl-compositor.git] / grpc-proxy / main-grpc.cpp
index 1e297c5..b719206 100644 (file)
@@ -578,6 +578,7 @@ int main(int argc, char **argv)
                ret = wl_display_dispatch(sh->wl_display);
        }
 
+       thread.join();
        destroy_shell_data(sh);
        return 0;
 }