merge dev for fixing bugs when frpc login failed

This commit is contained in:
fatedier 2016-05-09 00:37:01 +08:00
commit 7a9a675d58
1 changed files with 5 additions and 0 deletions

View File

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