frps: update

This commit is contained in:
fatedier
2016-12-28 00:56:55 +08:00
parent a5434e31b7
commit 90d1384bf7
2 changed files with 7 additions and 4 deletions

View File

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