Browse Source

Remove try-catch blocks

nxrighthere 7 years ago
parent
commit
87d5044ba8
1 changed files with 3 additions and 7 deletions
  1. 3 7
      Source/Managed/ENet.cs

+ 3 - 7
Source/Managed/ENet.cs

@@ -301,14 +301,10 @@ namespace ENet {
 		}
 
 		protected virtual void Dispose(bool disposing) {
-			try {
-				if (nativeHost != IntPtr.Zero) {
-					Native.enet_host_destroy(nativeHost);
-					nativeHost = IntPtr.Zero;
-				}
+			if (nativeHost != IntPtr.Zero) {
+				Native.enet_host_destroy(nativeHost);
+				nativeHost = IntPtr.Zero;
 			}
-
-			catch { }
 		}
 
 		~Host() {