Skip to content

Commit

Permalink
reuse method
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed Mar 29, 2013
1 parent 34fe0bc commit fb24e16
Showing 1 changed file with 3 additions and 5 deletions.
Expand Up @@ -21,7 +21,6 @@

package org.jumpmind.symmetric.load;

import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
Expand Down Expand Up @@ -271,10 +270,9 @@ public void batchCommitted(DataContext context) {
String nodeId = nodeService.findIdentityNodeId();
if (nodeId != null) {
NodeSecurity security = nodeService.findNodeSecurity(nodeId);
if (security != null) {
security.setRegistrationEnabled(false);
security.setRegistrationTime(new Date());
nodeService.updateNodeSecurity(security);
if (security != null &&
(security.isRegistrationEnabled() || security.getRegistrationTime() == null)) {
engine.getRegistrationService().markNodeAsRegistered(nodeId);
}
}
}
Expand Down

0 comments on commit fb24e16

Please sign in to comment.