We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c4e998 commit 31f705bCopy full SHA for 31f705b
proxy/vless/inbound/inbound.go
@@ -7,7 +7,6 @@ import (
7
"encoding/base64"
8
"io"
9
"reflect"
10
- "runtime"
11
"strconv"
12
"strings"
13
"time"
@@ -198,7 +197,7 @@ func (h *Handler) GetReverse(a *vless.MemoryAccount) (*Reverse, error) {
198
197
picker, _ := reverse.NewStaticMuxPicker()
199
r = &Reverse{tag: a.Reverse.Tag, picker: picker, client: &mux.ClientManager{Picker: picker}}
200
for len(h.outboundHandlerManager.ListHandlers(h.ctx)) == 0 {
201
- runtime.Gosched() // prevents this outbound from becoming the default outbound
+ time.Sleep(time.Second) // prevents this outbound from becoming the default outbound
202
}
203
if err := h.outboundHandlerManager.AddHandler(h.ctx, r); err != nil {
204
return nil, err
0 commit comments