mirror of
https://github.com/nonoo/kappanhang.git
synced 2026-04-21 06:13:43 +00:00
Fix exit on control stream error
This commit is contained in:
parent
4b44800fe1
commit
60e73fb027
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
|
@ -30,7 +30,7 @@ func runControlStream(osSignal chan os.Signal) (shouldExit bool, exitCode int) {
|
|||
if err := c.init(); err != nil {
|
||||
log.Error(err)
|
||||
c.deinit()
|
||||
return true, 1
|
||||
return false, 0
|
||||
}
|
||||
|
||||
select {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue