1
0
mirror of https://github.com/fatedier/frp.git synced 2025-03-10 13:50:10 +00:00

Merge pull request from LitleCarl/dev

Fix Bug for issure, fix 
This commit is contained in:
fatedier 2017-01-12 23:38:05 -06:00 committed by GitHub
commit 5f20a22b0d

View File

@ -286,7 +286,7 @@ func (p *ProxyServer) Close() {
p.Release() p.Release()
// if the proxy created by PrivilegeMode, delete it when closed // if the proxy created by PrivilegeMode, delete it when closed
if p.PrivilegeMode && oldStatus != consts.Closed { if p.PrivilegeMode && oldStatus == consts.Working {
// NOTE: this will take the global ProxyServerMap's lock // NOTE: this will take the global ProxyServerMap's lock
// if we only want to release resources, use Release() instead // if we only want to release resources, use Release() instead
DeleteProxy(p.Name) DeleteProxy(p.Name)