mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 00:09:55 +09:00
Throw on Wait
failure in a few remaining cases
This commit is contained in:
@ -209,6 +209,10 @@ namespace osu.Game.Database
|
||||
|
||||
public void SetMigrationCompletion() => migrationComplete.Set();
|
||||
|
||||
public void WaitForMigrationCompletion() => migrationComplete.Wait(300000);
|
||||
public void WaitForMigrationCompletion()
|
||||
{
|
||||
if (!migrationComplete.Wait(300000))
|
||||
throw new TimeoutException("Migration took too long (likely stuck).");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user