mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 11:12:26 -05:00 
			
		
		
		
	[bugfix] Avoid nil ptr if maintenance router can't be started (#3919)
This commit is contained in:
		
					parent
					
						
							
								682228fbd4
							
						
					
				
			
			
				commit
				
					
						f94da1a33c
					
				
			
		
					 1 changed files with 6 additions and 2 deletions
				
			
		
							
								
								
									
										4
									
								
								internal/cache/cache.go
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								internal/cache/cache.go
									
										
									
									
										vendored
									
									
								
							|  | @ -145,9 +145,13 @@ func (c *Caches) Start() error { | ||||||
| func (c *Caches) Stop() { | func (c *Caches) Stop() { | ||||||
| 	log.Infof(nil, "stop: %p", c) | 	log.Infof(nil, "stop: %p", c) | ||||||
| 
 | 
 | ||||||
|  | 	if c.Webfinger != nil { | ||||||
| 		_ = c.Webfinger.Stop() | 		_ = c.Webfinger.Stop() | ||||||
|  | 	} | ||||||
|  | 	if c.StatusesFilterableFields != nil { | ||||||
| 		_ = c.StatusesFilterableFields.Stop() | 		_ = c.StatusesFilterableFields.Stop() | ||||||
| 	} | 	} | ||||||
|  | } | ||||||
| 
 | 
 | ||||||
| // Sweep will sweep all the available caches to ensure none | // Sweep will sweep all the available caches to ensure none | ||||||
| // are above threshold percent full to their total capacity. | // are above threshold percent full to their total capacity. | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue