Skip to content

Commit

Permalink
Expose Channel.leave() publicly (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
atdrendel authored Nov 8, 2020
1 parent a912427 commit b61ba3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Phoenix/Channel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b61ba3f

Please sign in to comment.