From a60c888ae5295a3596d869db5c613c94b39df2fb Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Wed, 6 Jun 2018 22:05:25 +0900 Subject: [PATCH] Add comment about reasoning for local context variable --- osu.Game/Database/DatabaseContextFactory.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/osu.Game/Database/DatabaseContextFactory.cs b/osu.Game/Database/DatabaseContextFactory.cs index b5378b1311..5160239c38 100644 --- a/osu.Game/Database/DatabaseContextFactory.cs +++ b/osu.Game/Database/DatabaseContextFactory.cs @@ -63,6 +63,7 @@ namespace osu.Game.Database } else { + // we want to try-catch the retrieval of the context because it could throw an error (in CreateContext). context = threadContexts.Value; } }