Skip to content

Commit

Permalink
fixup! Websocket: Fix race on DataHandler during shutdown
Browse files Browse the repository at this point in the history
Fixes review comment: thrasher-corp#1471 (comment)
  • Loading branch information
gbjk committed Feb 26, 2024
1 parent bb38136 commit 61ac0e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exchanges/stream/websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -347,8 +347,8 @@ func (w *Websocket) dataMonitor() {
w.Wg.Add(1)

go func() {
defer w.setDataMonitorRunning(false)
defer w.Wg.Done()
defer w.setDataMonitorRunning(false)
full := false
for {
select {
Expand Down

0 comments on commit 61ac0e5

Please sign in to comment.