Fixed Ctrl-C handling

This commit is contained in:
2026-02-12 03:18:33 +03:00
parent 1b44637606
commit 4f597b2478
5 changed files with 36 additions and 22 deletions

View File

@@ -16,6 +16,7 @@ type App struct {
ctx context.Context
logger *logrus.Entry
config *configuration.Config
wg *sync.WaitGroup
domains map[string]domains.Domain
domainsMutex sync.RWMutex
@@ -118,3 +119,11 @@ func (a *App) StartDomains() error {
return nil
}
func (a *App) RegisterGlobalWaitGroup(wg *sync.WaitGroup) {
a.wg = wg
}
func (a *App) GetGlobalWaitGroup() *sync.WaitGroup {
return a.wg
}