mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-02-04 23:04:41 +01:00
Fix generic_async_transaction_context thread handling
This commit is contained in:
parent
db3d9cd217
commit
96cf5c4e63
|
|
@ -17,7 +17,12 @@ generic_async_transaction_context::generic_async_transaction_context(const SceNp
|
|||
generic_async_transaction_context::~generic_async_transaction_context()
|
||||
{
|
||||
if (thread.joinable())
|
||||
thread.join();
|
||||
{
|
||||
if (std::this_thread::get_id() == thread.get_id())
|
||||
thread.detach();
|
||||
else
|
||||
thread.join();
|
||||
}
|
||||
}
|
||||
|
||||
std::optional<s32> generic_async_transaction_context::get_transaction_status()
|
||||
|
|
|
|||
Loading…
Reference in a new issue