Fixed Ctrl-C handling
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user