mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 23:05:15 +00:00
ftx: null guard in close
This commit is contained in:
parent
e138531bfc
commit
3bcd5a8e83
|
@ -41,5 +41,8 @@ func (s *Stream) Subscribe(channel types.Channel, symbol string, _ types.Subscri
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
func (s *Stream) Close() error {
|
func (s *Stream) Close() error {
|
||||||
return s.wsService.Close()
|
if s.wsService != nil {
|
||||||
|
return s.wsService.Close()
|
||||||
|
}
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user