diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2017-08-26 20:32:33 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2017-08-26 20:32:33 -0400 |
| commit | e287e3a50d0f83a43905c17434e928fd6d754d9f (patch) | |
| tree | 4d24f51de4480cd7ff08b928e33dcbf5f6693a79 /MediaBrowser.Api/Session/SessionsService.cs | |
| parent | 749a181fac6d4ebc77047d8b9dd262abe3bd40d5 (diff) | |
remove async when there's nothing to await
Diffstat (limited to 'MediaBrowser.Api/Session/SessionsService.cs')
| -rw-r--r-- | MediaBrowser.Api/Session/SessionsService.cs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/MediaBrowser.Api/Session/SessionsService.cs b/MediaBrowser.Api/Session/SessionsService.cs index 18d261195..8f54b591e 100644 --- a/MediaBrowser.Api/Session/SessionsService.cs +++ b/MediaBrowser.Api/Session/SessionsService.cs @@ -313,14 +313,13 @@ namespace MediaBrowser.Api.Session public void Delete(RevokeKey request) { - var task = _sessionManager.RevokeToken(request.Key); + _sessionManager.RevokeToken(request.Key); - Task.WaitAll(task); } public void Post(CreateKey request) { - var task = _authRepo.Create(new AuthenticationInfo + _authRepo.Create(new AuthenticationInfo { AppName = request.App, IsActive = true, @@ -328,8 +327,6 @@ namespace MediaBrowser.Api.Session DateCreated = DateTime.UtcNow }, CancellationToken.None); - - Task.WaitAll(task); } public void Post(ReportSessionEnded request) |
