Minor edit

This commit is contained in:
Brandon Smith
2015-09-24 15:16:03 -03:00
parent 37af290925
commit 478232be42

View File

@@ -19,9 +19,7 @@ namespace Discord.Helpers
Task timeoutTask = Task.Delay(milliseconds);
Task finishedTask = await Task.WhenAny(self, timeoutTask);
if (finishedTask == timeoutTask)
{
throw new TimeoutException();
}
else
await self;
}