diff options
| author | Bond_009 <bond.009@outlook.com> | 2018-12-20 13:39:58 +0100 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2018-12-30 22:44:39 +0100 |
| commit | 79d18cf5a5fde7594eb17247f920a54d8978a81c (patch) | |
| tree | 59343a16d7df98f59e305e63fa2f585d443a7ddd /Emby.Server.Implementations/IO/SharpCifs/Netbios | |
| parent | ea4c914123ba8279b9d9fcf7d5318e11f7a3da4c (diff) | |
Clean up some catch statements
Diffstat (limited to 'Emby.Server.Implementations/IO/SharpCifs/Netbios')
| -rw-r--r-- | Emby.Server.Implementations/IO/SharpCifs/Netbios/Name.cs | 2 | ||||
| -rw-r--r-- | Emby.Server.Implementations/IO/SharpCifs/Netbios/NameServiceClient.cs | 8 |
2 files changed, 7 insertions, 3 deletions
diff --git a/Emby.Server.Implementations/IO/SharpCifs/Netbios/Name.cs b/Emby.Server.Implementations/IO/SharpCifs/Netbios/Name.cs index 6c37d57a46..15ae494bea 100644 --- a/Emby.Server.Implementations/IO/SharpCifs/Netbios/Name.cs +++ b/Emby.Server.Implementations/IO/SharpCifs/Netbios/Name.cs @@ -130,7 +130,7 @@ namespace SharpCifs.Netbios { name = Runtime.GetStringForBytes(tmp, 0, length).Trim(); } - catch (Exception ex) + catch (Exception) { } diff --git a/Emby.Server.Implementations/IO/SharpCifs/Netbios/NameServiceClient.cs b/Emby.Server.Implementations/IO/SharpCifs/Netbios/NameServiceClient.cs index 01700e64a5..0d7840a643 100644 --- a/Emby.Server.Implementations/IO/SharpCifs/Netbios/NameServiceClient.cs +++ b/Emby.Server.Implementations/IO/SharpCifs/Netbios/NameServiceClient.cs @@ -117,8 +117,9 @@ namespace SharpCifs.Netbios { Baddr = Config.GetInetAddress("jcifs.netbios.baddr", Extensions.GetAddressByName("255.255.255.255")); } - catch (Exception ex) + catch (Exception) { + } _sndBuf = new byte[SndBufSize]; @@ -302,7 +303,10 @@ namespace SharpCifs.Netbios } } - catch (TimeoutException) { } + catch (TimeoutException) + { + + } catch (Exception ex) { if (_log.Level > 2) |
