Merge pull request #231 from LitleCarl/dev

Fix Bug for issure, fix #227
This commit is contained in:
fatedier authored and GitHub committed 2017-01-12 23:38:05 -06:00
commit 5f20a22b0d
1 file changed
+1 -1
+1 -1
View File
@@ -286,7 +286,7 @@ func (p *ProxyServer) Close() {
p.Release()
// 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
// if we only want to release resources, use Release() instead
DeleteProxy(p.Name)