Skip to content

Commit

Permalink
fix: stopCtx nil pointer when ws client is closed
Browse files Browse the repository at this point in the history
  • Loading branch information
linstohu committed Dec 26, 2023
1 parent 46184ac commit 93900b8
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion binance/coinmfutures/websocketmarket/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ func (u *CoinMarginedMarketStreamClient) Close() error {
}

u.cancel()
u.stopCtx = nil

return nil
}
Expand Down
1 change: 0 additions & 1 deletion binance/europeanoptions/websocketmarket/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ func (o *OptionsMarketStreamClient) Close() error {
}

o.cancel()
o.stopCtx = nil

return nil
}
Expand Down
1 change: 0 additions & 1 deletion binance/europeanoptions/websocketuserdata/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ func (o *OptionsUserDataStreamClient) Close() error {
}

o.cancel()
o.stopCtx = nil

return nil
}
Expand Down
1 change: 0 additions & 1 deletion binance/spot/websocketmarket/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ func (m *SpotMarketStreamClient) Close() error {
}

m.cancel()
m.stopCtx = nil

return nil
}
Expand Down
1 change: 0 additions & 1 deletion binance/usdmfutures/websocketmarket/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ func (u *USDMarginedMarketStreamClient) Close() error {
}

u.cancel()
u.stopCtx = nil

return nil
}
Expand Down
1 change: 0 additions & 1 deletion htx/spot/accountws/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ func (m *AccountWsClient) Close() error {
}

m.cancel()
m.stopCtx = nil

return nil
}
Expand Down
1 change: 0 additions & 1 deletion htx/spot/marketws/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ func (m *MarketWsClient) Close() error {
}

m.cancel()
m.stopCtx = nil

return nil
}
Expand Down
1 change: 0 additions & 1 deletion htx/usdm/accountws/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ func (m *AccountWsClient) Close() error {
}

m.cancel()
m.stopCtx = nil

return nil
}
Expand Down
1 change: 0 additions & 1 deletion htx/usdm/marketws/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ func (m *MarketWsClient) Close() error {
}

m.cancel()
m.stopCtx = nil

return nil
}
Expand Down
1 change: 0 additions & 1 deletion woox/websocket/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ func (w *WooXWebsocketClient) Close() error {
}

w.cancel()
w.stopCtx = nil

return nil
}
Expand Down

0 comments on commit 93900b8

Please sign in to comment.