From 006f085c4b100be4042a13e729747efad09273d6 Mon Sep 17 00:00:00 2001 From: "Johnny Dellinger @PC" Date: Thu, 1 Oct 2015 17:31:42 +0200 Subject: [PATCH] Fixed HTTP-Server, it's now throwing exceptions. (Closes #38) --- SpotifyAPI/Web/SimpleHttpServer.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SpotifyAPI/Web/SimpleHttpServer.cs b/SpotifyAPI/Web/SimpleHttpServer.cs index dde30c0d..eac076c3 100644 --- a/SpotifyAPI/Web/SimpleHttpServer.cs +++ b/SpotifyAPI/Web/SimpleHttpServer.cs @@ -224,9 +224,10 @@ namespace SpotifyAPI.Web Thread.Sleep(1); } } - catch (Exception) + catch (SocketException e) { - // ignored + if (e.ErrorCode != 10004) //Ignore 10004, which is thrown when the thread gets terminated + throw; } }