diff --git a/src/core/hle/service/nim/nim.cpp b/src/core/hle/service/nim/nim.cpp index 1d84ca4420..d23babcc12 100644 --- a/src/core/hle/service/nim/nim.cpp +++ b/src/core/hle/service/nim/nim.cpp @@ -7,7 +7,6 @@ #include #include #include -#include #include #include "core/core.h" @@ -56,7 +55,7 @@ private: KernelHelpers::ServiceContext service_context; Kernel::KEvent* completion_event; - std::thread worker; + std::jthread worker; std::atomic cancel_requested{false}; std::atomic error_code{0}; @@ -129,7 +128,7 @@ private: download_data.clear(); } - worker = std::thread(&IShopServiceAsync::WorkerThread, this); + worker = std::jthread(&IShopServiceAsync::WorkerThread, this); R_SUCCEED(); }