From 419bd6293bca0b63f89ee1bf31e532264ee74118 Mon Sep 17 00:00:00 2001 From: Vijay Santhanam Date: Tue, 8 Dec 2015 12:10:41 +1100 Subject: [PATCH] Properly dispose http server When using the AuthorizationCodeAuth flow, the HTTP server should be stopped properly like in ImplicitGrantAuth --- SpotifyAPI/Web/Auth/AutorizationCodeAuth.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SpotifyAPI/Web/Auth/AutorizationCodeAuth.cs b/SpotifyAPI/Web/Auth/AutorizationCodeAuth.cs index dbf98cbf..ebf39d95 100644 --- a/SpotifyAPI/Web/Auth/AutorizationCodeAuth.cs +++ b/SpotifyAPI/Web/Auth/AutorizationCodeAuth.cs @@ -111,6 +111,7 @@ namespace SpotifyAPI.Web.Auth /// public void StopHttpServer() { + _httpServer.Dispose(); _httpServer = null; } @@ -159,4 +160,4 @@ namespace SpotifyAPI.Web.Auth public String State { get; set; } public String Error { get; set; } } -} \ No newline at end of file +}