mirror of
https://github.com/sorenisanerd/gotty.git
synced 2025-04-27 11:08:53 +00:00
Log force closing
This commit is contained in:
parent
91ee778665
commit
56e9b89199
1
main.go
1
main.go
@ -136,6 +136,7 @@ func waitSignals(errs chan error, cancel context.CancelFunc, gracefullCancel con
|
||||
case err := <-errs:
|
||||
return err
|
||||
case <-sigChan:
|
||||
fmt.Println("Force closing...")
|
||||
cancel()
|
||||
return <-errs
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user