diff --git a/cmd/frpc/sub/root.go b/cmd/frpc/sub/root.go index 55aba849..3c2c8d9e 100644 --- a/cmd/frpc/sub/root.go +++ b/cmd/frpc/sub/root.go @@ -234,7 +234,7 @@ func startService( } err = svr.Run() - if cfg.Protocol == "kcp" { + if err == nil && cfg.Protocol == "kcp" { <-kcpDoneCh } return