Fixed HTTP-Server, it's now throwing exceptions. (Closes #38)

This commit is contained in:
Johnny Dellinger @PC 2015-10-01 17:31:42 +02:00
parent d1f1923738
commit 006f085c4b

View File

@ -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;
}
}