frps: fix sometimes no response when frpc login to frps, see #142

This commit is contained in:
fatedier
2016-12-27 01:19:19 +08:00
parent 04a4591caa
commit 37470c26f0
4 changed files with 14 additions and 6 deletions

View File

@@ -395,7 +395,7 @@ func CreateProxy(s *ProxyServer) error {
if oldServer.Status == consts.Working {
return fmt.Errorf("this proxy is already working now")
}
oldServer.Close()
oldServer.Release()
if oldServer.PrivilegeMode {
delete(ProxyServers, s.Name)
}