mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +00:00
binance: invert if
This commit is contained in:
parent
cf07ca7aa0
commit
eefee46e9b
|
@ -448,9 +448,7 @@ func (s *Stream) listenKeyKeepAlive(ctx context.Context, listenKey string) {
|
|||
case <-keepAliveTicker.C:
|
||||
for i := 0; i < 5; i++ {
|
||||
err := s.keepaliveListenKey(ctx, listenKey)
|
||||
if err == nil {
|
||||
break
|
||||
} else {
|
||||
if err != nil {
|
||||
time.Sleep(5 * time.Second)
|
||||
switch err.(type) {
|
||||
case net.Error:
|
||||
|
@ -463,6 +461,8 @@ func (s *Stream) listenKeyKeepAlive(ctx context.Context, listenKey string) {
|
|||
return
|
||||
|
||||
}
|
||||
} else {
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user