Fix API scheduling.

This commit is contained in:
Dean Herbert
2016-09-27 19:22:02 +09:00
parent b4e65e7011
commit 154b914a3a
3 changed files with 20 additions and 6 deletions

View File

@ -74,17 +74,16 @@ namespace osu.Game.Online.API
WebRequest.BlockingPerform();
//OsuGame.Scheduler.Add(delegate {
Success?.Invoke();
//});
api.Scheduler.Add(delegate { Success?.Invoke(); });
}
public void Fail(Exception e)
{
WebRequest?.Abort();
//OsuGame.Scheduler.Add(delegate {
api.Scheduler.Add(delegate
{
Failure?.Invoke(e);
//});
});
}
}