frpc: fix that login_fail_exit invalid if protocol=kcp

This commit is contained in:
fatedier 2021-04-22 18:29:33 +08:00
parent fbaa5f866e
commit 229d9e6e63

View File

@ -234,7 +234,7 @@ func startService(
} }
err = svr.Run() err = svr.Run()
if cfg.Protocol == "kcp" { if err == nil && cfg.Protocol == "kcp" {
<-kcpDoneCh <-kcpDoneCh
} }
return return