Skip to content

Commit

Permalink
Fix: channel is SUSPENDED then operation will result in an error
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardopereira committed Dec 19, 2016
1 parent 7c7c84e commit 3e77e18
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Source/ARTRealtimeChannel.m
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ - (void)publishProtocolMessage:(ARTProtocolMessage *)pm callback:(void (^)(ARTSt
[self addToQueue:pm callback:cb];
break;
}
case ARTRealtimeChannelSuspended:
case ARTRealtimeChannelDetaching:
case ARTRealtimeChannelDetached:
case ARTRealtimeChannelFailed:
Expand All @@ -180,8 +181,6 @@ - (void)publishProtocolMessage:(ARTProtocolMessage *)pm callback:(void (^)(ARTSt
}
break;
}
default:
NSAssert(NO, @"Invalid State");
}
}

Expand Down

0 comments on commit 3e77e18

Please sign in to comment.