Skip to content
This repository was archived by the owner on Apr 28, 2022. It is now read-only.

Commit

Permalink
cmd/frps/control: fix bug when frpc login failed
Browse files Browse the repository at this point in the history
  • Loading branch information
fatedier committed May 8, 2016
1 parent d39d745 commit 040841d
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 040841d

Please sign in to comment.