diff --git a/source/discovery/carla-discovery.cpp b/source/discovery/carla-discovery.cpp index 28ffdf324..abb4f115e 100644 --- a/source/discovery/carla-discovery.cpp +++ b/source/discovery/carla-discovery.cpp @@ -2774,8 +2774,6 @@ int main(int argc, const char* argv[]) if (openLib && handle != nullptr) lib_close(handle); - gPipe = nullptr; - if (retryAsX64lugin) { #if defined(CARLA_OS_MAC) && defined(__aarch64__) @@ -2798,6 +2796,8 @@ int main(int argc, const char* argv[]) #endif } + gPipe = nullptr; + // ---------------------------------------------------------------------------------------------------------------- #ifdef CARLA_OS_WIN