mirror of
https://github.com/yudai/gotty.git
synced 2025-09-22 05:50:48 +02:00
Log force closing
This commit is contained in:
parent
91ee778665
commit
56e9b89199
1 changed files with 1 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue