From fe8ee35e2e0f3fa64892bfbed4154f1d6ebd5a90 Mon Sep 17 00:00:00 2001 From: Marcus Ficner Date: Mon, 28 Mar 2022 17:16:57 +0200 Subject: [PATCH] Revert "Ensure that calling cancel() deallocates the subscription" This reverts commit 1410033c56da1f64f5d06a56d87c778f59b39d63. --- Sources/CombineLongPolling/LongPollingPublisher.swift | 2 -- 1 file changed, 2 deletions(-) diff --git a/Sources/CombineLongPolling/LongPollingPublisher.swift b/Sources/CombineLongPolling/LongPollingPublisher.swift index 021cf7c..999607c 100644 --- a/Sources/CombineLongPolling/LongPollingPublisher.swift +++ b/Sources/CombineLongPolling/LongPollingPublisher.swift @@ -76,8 +76,6 @@ extension LongPollingPublisher { lock.lock() finished = true lock.unlock() - // Make sure to not wait for the semaphore, otherwise the object won't get allocated - semaphore.signal() buffer?.complete(completion: .finished) currentRequest = nil