mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	Improve graceful manager code/comment (#28063)
The graceful manager has some bugs (#27643, #28062). This is a preparation for further fixes.
This commit is contained in:
		| @@ -107,7 +107,9 @@ func (g *Manager) start(ctx context.Context) { | ||||
| 	defer pprof.SetGoroutineLabels(ctx) | ||||
|  | ||||
| 	// Set the running state & handle signals | ||||
| 	g.setState(stateRunning) | ||||
| 	if !g.setStateTransition(stateInit, stateRunning) { | ||||
| 		panic("invalid graceful manager state: transition from init to running failed") | ||||
| 	} | ||||
| 	g.notify(statusMsg("Starting Gitea")) | ||||
| 	g.notify(pidMsg()) | ||||
| 	go g.handleSignals(g.managerCtx) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user