mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-30 05:56:54 -05:00
kill server faster
This commit is contained in:
parent
e064ce65c8
commit
c55f737dd0
@ -110,6 +110,8 @@ func CloseAllServers() {
|
||||
log.Trace(errors.New("Closing all servers."))
|
||||
for _, server := range runningServers {
|
||||
server.Process.Signal(os.Interrupt)
|
||||
}
|
||||
for _, server := range runningServers {
|
||||
server.Process.Wait()
|
||||
}
|
||||
runningServers = make([]*exec.Cmd, 0, 10)
|
||||
|
Loading…
Reference in New Issue
Block a user