1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 15:43:22 +08:00

Fix edge case of realm backup cascading failure

This commit is contained in:
Dean Herbert 2022-08-17 17:17:22 +09:00
parent 243fe56b1d
commit fca076b988

View File

@ -902,7 +902,14 @@ namespace osu.Game.Database
{
using (var source = storage.GetStream(Filename, mode: FileMode.Open))
using (var destination = storage.GetStream(backupFilename, FileAccess.Write, FileMode.CreateNew))
{
// source may not exist.
if (source == null)
return;
source.CopyTo(destination);
}
return;
}
catch (IOException)