mirror of
https://github.com/fatedier/frp.git
synced 2025-07-27 07:35:07 +00:00
fix: kcp protocol cause delay release resource (#2621)
Co-authored-by: blizard863 <760076784@qq.com>
This commit is contained in:
@@ -124,8 +124,7 @@ func handleSignal(svr *client.Service) {
|
||||
ch := make(chan os.Signal)
|
||||
signal.Notify(ch, syscall.SIGINT, syscall.SIGTERM)
|
||||
<-ch
|
||||
svr.Close()
|
||||
time.Sleep(250 * time.Millisecond)
|
||||
svr.Close(time.Millisecond * 250)
|
||||
close(kcpDoneCh)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user