mirror of
https://gitee.com/IrisVega/frp.git
synced 2024-11-01 22:31:29 +08:00
Fix Bug for closing an exist ProxyServer when another ProxyServer with same name comes.
This commit is contained in:
parent
0c10279deb
commit
63be94c611
@ -285,7 +285,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)
|
||||||
|
Loading…
Reference in New Issue
Block a user