aboutsummaryrefslogtreecommitdiffstats
path: root/participant/participant-intermediary
diff options
context:
space:
mode:
authorsaul.gill <saul.gill@est.tech>2023-02-17 15:02:29 +0000
committersaul.gill <saul.gill@est.tech>2023-02-17 15:03:25 +0000
commit9727be561bc336337cb82aa843c11d514c678a29 (patch)
tree0991c6fee2c5c21ce0bdc22071f27b1ed832aeb8 /participant/participant-intermediary
parent4b45a63b9e8512f0502680eb99a7b6457b48b5a3 (diff)
Fix deregister message timing
Deregister message was not sent in time before participant shutdown Issue-ID: POLICY-4499 Change-Id: If830299e15d784df589b83d9e3e2e0aa20289df7 Signed-off-by: saul.gill <saul.gill@est.tech>
Diffstat (limited to 'participant/participant-intermediary')
-rw-r--r--participant/participant-intermediary/src/main/java/org/onap/policy/clamp/acm/participant/intermediary/handler/ParticipantHandler.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/participant/participant-intermediary/src/main/java/org/onap/policy/clamp/acm/participant/intermediary/handler/ParticipantHandler.java b/participant/participant-intermediary/src/main/java/org/onap/policy/clamp/acm/participant/intermediary/handler/ParticipantHandler.java
index bf9fbbcd2..ff967791d 100644
--- a/participant/participant-intermediary/src/main/java/org/onap/policy/clamp/acm/participant/intermediary/handler/ParticipantHandler.java
+++ b/participant/participant-intermediary/src/main/java/org/onap/policy/clamp/acm/participant/intermediary/handler/ParticipantHandler.java
@@ -172,9 +172,8 @@ public class ParticipantHandler {
public void sendParticipantDeregister() {
var participantDeregister = new ParticipantDeregister();
participantDeregister.setParticipantId(participantId);
-
- undeployInstancesOnParticipant();
publisher.sendParticipantDeregister(participantDeregister);
+ undeployInstancesOnParticipant();
}
private void undeployInstancesOnParticipant() {