msg: new message CloseProxy

This commit is contained in:
fatedier
2017-06-11 17:22:05 +08:00
parent 5b303f5148
commit fca7f42b37
3 changed files with 35 additions and 3 deletions

View File

@ -358,6 +358,9 @@ func (ctl *Control) manager() {
pxy := NewProxy(ctl, cfg)
if err := pxy.Run(); err != nil {
ctl.Warn("[%s] proxy start running error: %v", m.ProxyName, err)
ctl.sendCh <- &msg.CloseProxy{
ProxyName: m.ProxyName,
}
continue
}
ctl.proxies[m.ProxyName] = pxy