summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/service/bcat/backend/boxcat.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/core/hle/service/bcat/backend/boxcat.cpp b/src/core/hle/service/bcat/backend/boxcat.cpp
index 36eb2c094..e6ee0810b 100644
--- a/src/core/hle/service/bcat/backend/boxcat.cpp
+++ b/src/core/hle/service/bcat/backend/boxcat.cpp
@@ -364,18 +364,17 @@ void SynchronizeInternal(DirectoryGetter dir_getter, TitleIDVersion title,
364 364
365bool Boxcat::Synchronize(TitleIDVersion title, ProgressServiceBackend& progress) { 365bool Boxcat::Synchronize(TitleIDVersion title, ProgressServiceBackend& progress) {
366 is_syncing.exchange(true); 366 is_syncing.exchange(true);
367 std::thread([this, title, &progress] { 367 std::thread([this, title, &progress] { SynchronizeInternal(dir_getter, title, progress); })
368 SynchronizeInternal(dir_getter, title, progress); 368 .detach();
369 }).detach();
370 return true; 369 return true;
371} 370}
372 371
373bool Boxcat::SynchronizeDirectory(TitleIDVersion title, std::string name, 372bool Boxcat::SynchronizeDirectory(TitleIDVersion title, std::string name,
374 ProgressServiceBackend& progress) { 373 ProgressServiceBackend& progress) {
375 is_syncing.exchange(true); 374 is_syncing.exchange(true);
376 std::thread([this, title, name, &progress] { 375 std::thread(
377 SynchronizeInternal(dir_getter, title, progress, name); 376 [this, title, name, &progress] { SynchronizeInternal(dir_getter, title, progress, name); })
378 }).detach(); 377 .detach();
379 return true; 378 return true;
380} 379}
381 380