add dispose()

This commit is contained in:
Kimdiego2098
2023-09-15 13:23:39 +08:00
parent abff450274
commit b103f25c94
2 changed files with 2 additions and 0 deletions

View File

@@ -128,6 +128,7 @@ namespace TouchSocket.Core
this.m_status = WaitDataStatus.Disposed;
this.WaitResult = default;
this.m_waitHandle.SafeDispose();
this.registration.Dispose();
base.Dispose(disposing);
}
}

View File

@@ -119,6 +119,7 @@ namespace TouchSocket.Core
this.m_status = WaitDataStatus.Disposed;
this.WaitResult = default;
this.m_asyncWaitHandle.SafeDispose();
this.registration.Dispose();
base.Dispose(disposing);
}
}