This commit is contained in:
crusader 2017-12-01 22:20:01 +09:00
parent 33fe7f5d25
commit d720b5eed2
3 changed files with 3 additions and 6 deletions

View File

@ -99,7 +99,7 @@ func (a *auth) Stop() {
func (a *auth) destroy(err error) { func (a *auth) destroy(err error) {
if a.stopChan == nil { 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) close(a.stopChan)
a.stopWg.Wait() a.stopWg.Wait()

View File

@ -4,8 +4,5 @@
"apiKey": "52abd6fd57e511e7ac52080027658d13", "apiKey": "52abd6fd57e511e7ac52080027658d13",
"readBufferSize": 8192, "readBufferSize": 8192,
"writeBufferSize": 8192 "writeBufferSize": 8192
},
"probe": {
"key": "52abd6fd57e511e7ac52080027658d13"
} }
} }

View File

@ -71,12 +71,12 @@ func main() {
if err := instance.(commons.EndableStarter).EndableStart(authDoneChan); err != nil { if err := instance.(commons.EndableStarter).EndableStart(authDoneChan); err != nil {
logging.Logger().Error(err.Error()) logging.Logger().Error(err.Error())
return os.Exit(1)
} }
err = <-authDoneChan err = <-authDoneChan
if nil != err { if nil != err {
logging.Logger().Error(err.Error()) logging.Logger().Error(err.Error())
return os.Exit(1)
} }
} }
// if instance, err = probe.New(); nil != err { // if instance, err = probe.New(); nil != err {