Skip to content

Commit

Permalink
Move disableSendingMessages call
Browse files Browse the repository at this point in the history
  • Loading branch information
javiercr committed May 22, 2024
1 parent c93d893 commit 1c19863
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion messagix/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,9 @@ func (c *Client) Connect() error {
connectionAttempts := 1
reconnectIn := 2 * time.Second
for {
c.disableSendingMessages() // In case we're reconnecting from a normal network error
connectStart := time.Now()
err := c.socket.Connect()
c.disableSendingMessages()
if ctx.Err() != nil {
return
}
Expand Down

0 comments on commit 1c19863

Please sign in to comment.