We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4fb84ff commit 8ba9c3fCopy full SHA for 8ba9c3f
v2/websocket/client.go
@@ -329,10 +329,12 @@ func (c *Client) reconnect(socket *Socket, err error) error {
329
c.mtx.RLock()
330
if c.terminal {
331
// dont attempt to reconnect if terminal
332
+ c.mtx.RUnlock()
333
return err
334
}
335
if !c.parameters.AutoReconnect {
336
err := fmt.Errorf("AutoReconnect setting is disabled, do not reconnect: %s", err.Error())
337
338
339
340
c.mtx.RUnlock()
0 commit comments