Skip to content

Commit

Permalink
client/core: do not disconnect on config timeout
Browse files Browse the repository at this point in the history
If the config request started by refreshServerConfig on reconnect times
out, it should not disconnect the current connection.  The wsConn's
reconnect / keepAlive loop will deal with it.
  • Loading branch information
chappjc committed Feb 13, 2021
1 parent 70044e6 commit 4df683a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion client/core/bookie.go
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,6 @@ func (dc *dexConnection) refreshServerConfig() error {
cfg := new(msgjson.ConfigResult)
err := sendRequest(dc.WsConn, msgjson.ConfigRoute, nil, cfg, DefaultResponseTimeout)
if err != nil {
dc.connMaster.Disconnect()
return fmt.Errorf("unable to fetch server config: %w", err)
}

Expand Down

0 comments on commit 4df683a

Please sign in to comment.