mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 23:05:15 +00:00
binance: emit disconnect
This commit is contained in:
parent
6d249cf83c
commit
c95e712420
|
@ -366,6 +366,8 @@ func (s *Stream) read(ctx context.Context) {
|
||||||
log.Info("websocket connection closed, going away")
|
log.Info("websocket connection closed, going away")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
s.EmitDisconnect()
|
||||||
|
|
||||||
// reconnect
|
// reconnect
|
||||||
for err != nil {
|
for err != nil {
|
||||||
select {
|
select {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user