mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-24 06:56:27 +00:00
Properly dispose http server
When using the AuthorizationCodeAuth flow, the HTTP server should be stopped properly like in ImplicitGrantAuth
This commit is contained in:
parent
8b67917682
commit
419bd6293b
@ -111,6 +111,7 @@ namespace SpotifyAPI.Web.Auth
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public void StopHttpServer()
|
public void StopHttpServer()
|
||||||
{
|
{
|
||||||
|
_httpServer.Dispose();
|
||||||
_httpServer = null;
|
_httpServer = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -159,4 +160,4 @@ namespace SpotifyAPI.Web.Auth
|
|||||||
public String State { get; set; }
|
public String State { get; set; }
|
||||||
public String Error { get; set; }
|
public String Error { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user