diff --git a/Sources/Phoenix/Channel.swift b/Sources/Phoenix/Channel.swift index f617d250..dccd01b0 100644 --- a/Sources/Phoenix/Channel.swift +++ b/Sources/Phoenix/Channel.swift @@ -220,8 +220,8 @@ extension Channel { // MARK: leave extension Channel { - func leave(timeout customTimeout: DispatchTimeInterval? = nil) { - guard let socket = self.socket else { return assertionFailure("No socket") } + public func leave(timeout customTimeout: DispatchTimeInterval? = nil) { + guard let socket = self.socket else { return } sync { self.shouldRejoin = false