diff --git a/src/main.cpp b/src/main.cpp index 5aa9277f..68f9397b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -140,7 +140,6 @@ main(int argc, char *argv[]) { BOOST_LOG(error) << "Platform failed to initialize"sv; } - auto input_deinit_guard = input::init(); int queuetype = -1; std::stringstream ss; ss << argv[2]; ss >> queuetype; @@ -153,6 +152,10 @@ main(int argc, char *argv[]) { } } + if(queuetype == QueueType::Input) { + auto input_deinit_guard = input::init(); + } + //Get buffer local address from handle SharedMemory* memory = obtain_shared_memory(argv[1]);