Skip to content

Commit

Permalink
frpc: fix that login_fail_exit invalid if protocol=kcp (fatedier#2363)
Browse files Browse the repository at this point in the history
  • Loading branch information
fatedier authored Apr 22, 2021
1 parent fbaa5f8 commit 2408f1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/frpc/sub/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ func startService(
}

err = svr.Run()
if cfg.Protocol == "kcp" {
if err == nil && cfg.Protocol == "kcp" {
<-kcpDoneCh
}
return
Expand Down

0 comments on commit 2408f1d

Please sign in to comment.