mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Fix signal loop in graceful manager (#19943)
This commit is contained in:
		@@ -157,6 +157,7 @@ func (g *Manager) handleSignals(ctx context.Context) {
 | 
				
			|||||||
		case <-ctx.Done():
 | 
							case <-ctx.Done():
 | 
				
			||||||
			log.Warn("PID: %d. Background context for manager closed - %v - Shutting down...", pid, ctx.Err())
 | 
								log.Warn("PID: %d. Background context for manager closed - %v - Shutting down...", pid, ctx.Err())
 | 
				
			||||||
			g.DoGracefulShutdown()
 | 
								g.DoGracefulShutdown()
 | 
				
			||||||
 | 
								return
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user