Skip to content

Commit

Permalink
Minor fix in clone() method in SubscriptionSet
Browse files Browse the repository at this point in the history
  • Loading branch information
jguz-pubnub committed Feb 19, 2024
1 parent 8b9ae38 commit 0b9dfef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/PubNub/Events/New/SubscriptionSet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public final class SubscriptionSet: EventEmitter, SubscriptionDisposable {
options: options
)
if let receiver = currentSubscriptions.first?.receiver, receiver.hasRegisteredAdapter(with: uuid) {
receiver.registerAdapter(adapter)
receiver.registerAdapter(clonedSubscriptionSet.adapter)
}
return clonedSubscriptionSet
}
Expand Down

0 comments on commit 0b9dfef

Please sign in to comment.