Browse Source

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

tanghai 7 years ago
parent
commit
2f0e7673de
1 changed files with 1 additions and 5 deletions
  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)
 		{
-			if (self.IsDisposed)
-			{
-				return;
-			}
-
 			self.LastSendTime = 0;
 			self.Address = null;
 
@@ -59,6 +54,7 @@ namespace ETHotfix
 		{
 			self.LastSendTime = TimeHelper.Now();
 			self.tcs = null;
+			self.failTimes = 0;
 			self.CancellationTokenSource = new CancellationTokenSource();
 		}