Skip to content

Commit

Permalink
Revert "Ensure that calling cancel() deallocates the subscription"
Browse files Browse the repository at this point in the history
This reverts commit 1410033.
  • Loading branch information
marcusficner committed Mar 28, 2022
1 parent 1410033 commit fe8ee35
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Sources/CombineLongPolling/LongPollingPublisher.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fe8ee35

Please sign in to comment.