Explorar o código

修复ActorProxyDestroySystem未生效的bug,DestroySystem中不应该判断IsDisposed

tanghai %!s(int64=7) %!d(string=hai) anos
pai
achega
2f0e7673de
Modificáronse 1 ficheiros con 1 adicións e 5 borrados
  1. 1 5
      Server/Hotfix/Module/Actor/ActorProxySystem.cs

+ 1 - 5
Server/Hotfix/Module/Actor/ActorProxySystem.cs

@@ -32,11 +32,6 @@ namespace ETHotfix
 	{
 	{
 		public override void Destroy(ActorProxy self)
 		public override void Destroy(ActorProxy self)
 		{
 		{
-			if (self.IsDisposed)
-			{
-				return;
-			}
-
 			self.LastSendTime = 0;
 			self.LastSendTime = 0;
 			self.Address = null;
 			self.Address = null;
 
 
@@ -59,6 +54,7 @@ namespace ETHotfix
 		{
 		{
 			self.LastSendTime = TimeHelper.Now();
 			self.LastSendTime = TimeHelper.Now();
 			self.tcs = null;
 			self.tcs = null;
+			self.failTimes = 0;
 			self.CancellationTokenSource = new CancellationTokenSource();
 			self.CancellationTokenSource = new CancellationTokenSource();
 		}
 		}