Merge pull request #231 from LitleCarl/dev

Fix Bug for issure, fix #227
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)