cmd/frps/control: fix bug when frpc login failed

This commit is contained in:
fatedier 2016-05-09 00:15:31 +08:00
parent d39d745e43
commit 040841db48

View File

@ -93,6 +93,11 @@ func controlWorker(c *conn.Conn) {
return
}
// if login failed, just return
if ret > 0 {
return
}
// create a channel for sending messages
msgSendChan := make(chan interface{}, 1024)
go msgSender(s, c, msgSendChan)