From 65a132c8e74e910e350c4a84bfba2b183813c614 Mon Sep 17 00:00:00 2001 From: Surya Sashank Nistala Date: Wed, 16 Oct 2024 11:54:28 -0700 Subject: [PATCH] notifications listener leak Signed-off-by: Surya Sashank Nistala --- .../correlation/alert/notifications/NotificationService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/org/opensearch/securityanalytics/correlation/alert/notifications/NotificationService.java b/src/main/java/org/opensearch/securityanalytics/correlation/alert/notifications/NotificationService.java index 7ed1bb0ae..d081fd00f 100644 --- a/src/main/java/org/opensearch/securityanalytics/correlation/alert/notifications/NotificationService.java +++ b/src/main/java/org/opensearch/securityanalytics/correlation/alert/notifications/NotificationService.java @@ -81,6 +81,7 @@ public void sendNotification(String configId, String severity, String subject, S sendNotificationResponse -> { if (sendNotificationResponse.getStatus() == RestStatus.OK) { logger.info("Successfully sent a notification, Notification Event: " + sendNotificationResponse.getNotificationEvent()); + listener.onResponse(null); } else { listener.onFailure(new Exception("Error while sending a notification, Notification Event: " + sendNotificationResponse.getNotificationEvent())); }