From 607b9023546b447a36e49e1afda295e34f6ea5fd Mon Sep 17 00:00:00 2001 From: Sunita Prajapati Date: Fri, 20 Jun 2025 15:20:04 +0530 Subject: [PATCH] fix: removed dead flush method --- Sources/Segment/Plugins/SegmentDestination.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Segment/Plugins/SegmentDestination.swift b/Sources/Segment/Plugins/SegmentDestination.swift index c279ace6..1ccef41a 100644 --- a/Sources/Segment/Plugins/SegmentDestination.swift +++ b/Sources/Segment/Plugins/SegmentDestination.swift @@ -108,7 +108,7 @@ public class SegmentDestination: DestinationPlugin, Subscriber, FlushCompletion internal func enterForeground() { } internal func enterBackground() { - flush() + analytics?.flush() } // MARK: - Event Parsing Methods