Skip to content

Commit

Permalink
merge dev for fixing bugs when frpc login failed
Browse files Browse the repository at this point in the history
  • Loading branch information
fatedier committed May 8, 2016
2 parents f804330 + 040841d commit 7a9a675
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/frp/cmd/frps/control.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7a9a675

Please sign in to comment.