mirror of https://github.com/ppy/osu
Add comment about reasoning for local context variable
This commit is contained in:
parent
3a823d6c25
commit
a60c888ae5
|
@ -63,6 +63,7 @@ public DatabaseWriteUsage GetForWrite(bool withTransaction = true)
|
|||
}
|
||||
else
|
||||
{
|
||||
// we want to try-catch the retrieval of the context because it could throw an error (in CreateContext).
|
||||
context = threadContexts.Value;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue