Skip to content

Commit 006f085

Browse files
committed
Fixed HTTP-Server, it's now throwing exceptions. (Closes #38)
1 parent d1f1923 commit 006f085

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

SpotifyAPI/Web/SimpleHttpServer.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,10 @@ public void Listen()
224224
Thread.Sleep(1);
225225
}
226226
}
227-
catch (Exception)
227+
catch (SocketException e)
228228
{
229-
// ignored
229+
if (e.ErrorCode != 10004) //Ignore 10004, which is thrown when the thread gets terminated
230+
throw;
230231
}
231232
}
232233

0 commit comments

Comments
 (0)