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