Skip to content

Commit

Permalink
Fix RPC reloads on clean env
Browse files Browse the repository at this point in the history
  • Loading branch information
buger committed Feb 26, 2018
1 parent 6e39a5e commit 01e7d5e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rpc_storage_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -896,10 +896,11 @@ func (r *RPCStorageHandler) CheckForReload(orgId string) {
)
if r.IsAccessError(err) {
log.Warning("[RPC STORE] CheckReload: Not logged in")
r.ReConnect()
if r.Login() {
r.CheckForReload(orgId)
}
} else if !strings.Contains(err.Error(), "Cannot obtain response during") {
log.Warning("[RPC STORE] RPC Reload Checker encountered unexpected error: ", err)
r.ReConnect()
}
} else if reload == true {
// Do the reload!
Expand Down

0 comments on commit 01e7d5e

Please sign in to comment.