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:
parent
243fe56b1d
commit
fca076b988
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user