mirror of
				https://github.com/2dust/v2rayN.git
				synced 2025-11-04 06:22:52 +00:00 
			
		
		
		
	fix bug
This commit is contained in:
		
							parent
							
								
									7b28aa8500
								
							
						
					
					
						commit
						cb5d8b405b
					
				
					 1 changed files with 2 additions and 4 deletions
				
			
		| 
						 | 
					@ -165,7 +165,6 @@ namespace v2rayN.Handler
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        private async Task RunSpeedTestAsync()
 | 
					        private async Task RunSpeedTestAsync()
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            string testIndexId = string.Empty;
 | 
					 | 
				
			||||||
            int pid = -1;
 | 
					            int pid = -1;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            pid = _coreHandler.LoadCoreConfigString(_config, _selecteds);
 | 
					            pid = _coreHandler.LoadCoreConfigString(_config, _selecteds);
 | 
				
			||||||
| 
						 | 
					@ -181,8 +180,6 @@ namespace v2rayN.Handler
 | 
				
			||||||
            var timeout = 10;
 | 
					            var timeout = 10;
 | 
				
			||||||
            foreach (var it in _selecteds)
 | 
					            foreach (var it in _selecteds)
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                _ = LazyConfig.Instance.SetTestResult(it.indexId, "", "-1");
 | 
					 | 
				
			||||||
                UpdateFunc(it.indexId, "", ResUI.Speedtesting);
 | 
					 | 
				
			||||||
                if (!it.allowTest)
 | 
					                if (!it.allowTest)
 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
                    continue;
 | 
					                    continue;
 | 
				
			||||||
| 
						 | 
					@ -191,7 +188,8 @@ namespace v2rayN.Handler
 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
                    continue;
 | 
					                    continue;
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
                testIndexId = it.indexId;
 | 
					                _ = LazyConfig.Instance.SetTestResult(it.indexId, "", "-1");
 | 
				
			||||||
 | 
					                UpdateFunc(it.indexId, "", ResUI.Speedtesting);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                var item = LazyConfig.Instance.GetProfileItem(it.indexId);
 | 
					                var item = LazyConfig.Instance.GetProfileItem(it.indexId);
 | 
				
			||||||
                if (item is null) continue;
 | 
					                if (item is null) continue;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue