diff --git a/VTIL-Common/util/task.hpp b/VTIL-Common/util/task.hpp index a0face9..cfd4651 100644 --- a/VTIL-Common/util/task.hpp +++ b/VTIL-Common/util/task.hpp @@ -148,7 +148,7 @@ namespace vtil::task #if VTIL_USE_THREAD_POOLING handle = std::async( std::launch::async, std::move( f ) ); #else - handle = { f }; + handle = std::thread( std::move( f ) ); #endif } @@ -171,4 +171,4 @@ namespace vtil::task #endif } }; -}; \ No newline at end of file +};