diff options
| author | Luke <luke.pulverenti@gmail.com> | 2017-10-17 15:50:31 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-10-17 15:50:31 -0400 |
| commit | 497819b34531b9c3166a7f85aada1b1a493c388d (patch) | |
| tree | 799e6fb1b1acad0f39d5f3ab26496bbfbd5887cc /SocketHttpListener | |
| parent | 3373be07703dd340e884977707adc241995a7aaa (diff) | |
| parent | 32e89f6debd79c4383320b2fbd42224fc2dce891 (diff) | |
Merge pull request #2962 from MediaBrowser/dev
Dev
Diffstat (limited to 'SocketHttpListener')
| -rw-r--r-- | SocketHttpListener/Net/HttpConnection.cs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/SocketHttpListener/Net/HttpConnection.cs b/SocketHttpListener/Net/HttpConnection.cs index 4e8158964..05576ea1e 100644 --- a/SocketHttpListener/Net/HttpConnection.cs +++ b/SocketHttpListener/Net/HttpConnection.cs @@ -528,7 +528,13 @@ namespace SocketHttpListener.Net finally { if (s != null) - s.Close(); + { + try + { + s.Close(); + } + catch { } + } } Unbind(); RemoveConnection(); |
