Properly dispose http server

When using the AuthorizationCodeAuth flow, the HTTP server should be stopped properly like in ImplicitGrantAuth
This commit is contained in:
Vijay Santhanam 2015-12-08 12:10:41 +11:00
parent 8b67917682
commit 419bd6293b

View File

@ -111,6 +111,7 @@ namespace SpotifyAPI.Web.Auth
/// </summary> /// </summary>
public void StopHttpServer() public void StopHttpServer()
{ {
_httpServer.Dispose();
_httpServer = null; _httpServer = null;
} }