1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:57:39 +08:00

Don't die on a null connection during disposal

May be caused by a startup error. This shouldn't result in an additional exception here.
This commit is contained in:
Dean Herbert 2017-09-19 20:04:13 +09:00
parent 99b512cce5
commit 390c212dcb

View File

@ -231,7 +231,7 @@ namespace osu.Game
LocalConfig.Save();
}
connection.Dispose();
connection?.Dispose();
base.Dispose(isDisposing);
}