1
0
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:
Iwasaki Yudai 2017-08-20 13:38:42 +09:00
parent 91ee778665
commit 56e9b89199

@ -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
}