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 @@ namespace osu.Game.Database
}
///
- /// 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 @@ namespace osu.Game.Database
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 @@ namespace osu.Game.Database
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);
}
///