msg: new message CloseProxy

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

No files matched your search

+3
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