Skip to content

Commit

Permalink
0001118: Allow the sync.url to be blank. Past versions of SymmetricDS…
Browse files Browse the repository at this point in the history
… allowed this and defaulted to using the registration.url
  • Loading branch information
chenson42 committed Mar 18, 2013
1 parent f281e17 commit 44b53ad
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -260,8 +260,8 @@ public void loadDataFromPull(Node remote, RemoteNodeStatus status) throws IOExce
}

} catch (RegistrationRequiredException e) {
if (remote.getSyncUrl().equals(parameterService.getRegistrationUrl())) {
log.warn("Registration was lost. Attempting to re-register.");
if (StringUtils.isBlank(remote.getSyncUrl()) || remote.getSyncUrl().equals(parameterService.getRegistrationUrl())) {
log.warn("Node information missing on the server. Attempting to re-register");
loadDataFromPull(null, status);
nodeService.findIdentity(false);
} else {
Expand Down

0 comments on commit 44b53ad

Please sign in to comment.