Allow unsubscribe for pending subscribers

parent 4fb88daf
......@@ -26,7 +26,7 @@ class PubRelay::SubscriptionManager
def transition?(new_state)
case self
when Pending
new_state.subscribed? || new_state.unsubscribed?
when Subscribed
new_state.unsubscribed? || new_state.failed?
when Failed
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment