Skip to content

Commit

Permalink
Merge pull request #83 from Chia-Network/fix-initial-connect
Browse files Browse the repository at this point in the history
  • Loading branch information
cmmarslender authored Feb 26, 2023
2 parents e46f471 + 230666c commit d8ef573
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions pkg/websocketclient/websocketclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,14 @@ func (c *WebsocketClient) Subscribe(service string) error {
if _, alreadySet := c.subscriptions[service]; alreadySet {
return nil
}
c.subscriptions[service] = true

return c.doSubscribe(service)
err := c.doSubscribe(service)
if err != nil {
return err
}

c.subscriptions[service] = true
return nil
}

func (c *WebsocketClient) doSubscribe(service string) error {
Expand Down

0 comments on commit d8ef573

Please sign in to comment.