grpc-proxy: Terminate thread when we're exiting
[src/agl-compositor.git] / grpc-proxy / main-grpc.cpp
index b2eca84..5b07d64 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;
 }