Browse Source

Fix host disposing

nxrighthere 7 years ago
parent
commit
ac0336f7b4
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Source/Managed/ENet.cs

+ 1 - 0
Source/Managed/ENet.cs

@@ -265,6 +265,7 @@ namespace ENet {
 
 		public void Dispose() {
 			Dispose(true);
+			GC.SuppressFinalize(this);
 		}
 
 		protected virtual void Dispose(bool disposing) {