diff --git a/osu.Game/Database/RealmArchiveModelImporter.cs b/osu.Game/Database/RealmArchiveModelImporter.cs
index 3d61345f34..f3174b46b8 100644
--- a/osu.Game/Database/RealmArchiveModelImporter.cs
+++ b/osu.Game/Database/RealmArchiveModelImporter.cs
@@ -208,8 +208,11 @@ await Task.WhenAll(tasks.Select(async task =>
}
///
- /// Silently import an item from an .
+ /// Create and import a model based off the provided .
///
+ ///
+ /// This method also handled queueing the import task on a relevant import thread pool.
+ ///
/// The archive to be imported.
/// Whether this import is part of a larger batch.
/// An optional cancellation token.
@@ -225,6 +228,13 @@ await Task.WhenAll(tasks.Select(async task =>
if (model == null)
return null;
+
+ var scheduledImport = Task.Factory.StartNew(() => ImportModel(model, archive, batchImport, cancellationToken),
+ cancellationToken,
+ TaskCreationOptions.HideScheduler,
+ batchImport ? import_scheduler_batch : import_scheduler);
+
+ return await scheduledImport.ConfigureAwait(false);
}
catch (TaskCanceledException)
{
@@ -235,13 +245,6 @@ await Task.WhenAll(tasks.Select(async task =>
LogForModel(model, @$"Model creation of {archive.Name} failed.", e);
return null;
}
-
- var scheduledImport = Task.Factory.StartNew(() => ImportModel(model, archive, batchImport, cancellationToken),
- cancellationToken,
- TaskCreationOptions.HideScheduler,
- batchImport ? import_scheduler_batch : import_scheduler);
-
- return await scheduledImport.ConfigureAwait(false);
}
///