diff --git a/Sources/EventSource/EventSource.swift b/Sources/EventSource/EventSource.swift index bda50be..8a2a252 100644 --- a/Sources/EventSource/EventSource.swift +++ b/Sources/EventSource/EventSource.swift @@ -182,6 +182,7 @@ public extension EventSource { cancel() if previousState == .open { continuation.yield(.closed) + continuation.finish() } }