diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-12-20 00:21:52 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-12-20 00:21:52 -0500 |
| commit | 40e8d0c75e5f19167f08f0159830723684178a4f (patch) | |
| tree | 4cdedcabf6dd1633e5726d92cc554a3eb697cd99 /RSSDP | |
| parent | a93c2682d96dee4acf0f98f3adb44ef46610227a (diff) | |
add additional http server error handling
Diffstat (limited to 'RSSDP')
| -rw-r--r-- | RSSDP/SsdpCommunicationsServer.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/RSSDP/SsdpCommunicationsServer.cs b/RSSDP/SsdpCommunicationsServer.cs index b709861d5..97f5ebbd0 100644 --- a/RSSDP/SsdpCommunicationsServer.cs +++ b/RSSDP/SsdpCommunicationsServer.cs @@ -183,6 +183,10 @@ namespace Rssdp.Infrastructure { await socket.SendAsync(messageData, messageData.Length, destination).ConfigureAwait(false); } + catch (ObjectDisposedException) + { + + } catch (Exception ex) { _logger.ErrorException("Error sending socket message from {0} to {1}", ex, socket.LocalIPAddress.ToString(), destination.ToString()); |
