ing
This commit is contained in:
parent
33fe7f5d25
commit
d720b5eed2
|
@ -99,7 +99,7 @@ func (a *auth) Stop() {
|
|||
|
||||
func (a *auth) destroy(err error) {
|
||||
if a.stopChan == nil {
|
||||
logging.Logger().Panic("Auth: auth must be started before stopping it")
|
||||
logging.Logger().Warn("Auth: auth must be started before stopping it")
|
||||
}
|
||||
close(a.stopChan)
|
||||
a.stopWg.Wait()
|
||||
|
|
|
@ -4,8 +4,5 @@
|
|||
"apiKey": "52abd6fd57e511e7ac52080027658d13",
|
||||
"readBufferSize": 8192,
|
||||
"writeBufferSize": 8192
|
||||
},
|
||||
"probe": {
|
||||
"key": "52abd6fd57e511e7ac52080027658d13"
|
||||
}
|
||||
}
|
4
main.go
4
main.go
|
@ -71,12 +71,12 @@ func main() {
|
|||
|
||||
if err := instance.(commons.EndableStarter).EndableStart(authDoneChan); err != nil {
|
||||
logging.Logger().Error(err.Error())
|
||||
return
|
||||
os.Exit(1)
|
||||
}
|
||||
err = <-authDoneChan
|
||||
if nil != err {
|
||||
logging.Logger().Error(err.Error())
|
||||
return
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
// if instance, err = probe.New(); nil != err {
|
||||
|
|
Loading…
Reference in New Issue
Block a user