Skip to content

Commit 04e3711

Browse files
committed
fix group subscribe issue
1 parent 4511297 commit 04e3711

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎java/srcPubnubApi/com/pubnub/api/PubnubCore.java‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2374,10 +2374,11 @@ private void _subscribe_base(boolean fresh, boolean dar, Worker worker) {
23742374
String[] channelsArray = channelSubscriptions.getItemNames();
23752375
String[] groupsArray = channelGroupSubscriptions.getItemNames();
23762376

2377-
if (channelsArray.length <= 0) {
2377+
if (channelsArray.length <= 0 && groupsArray.length <= 0) {
23782378
subscribeManager.resetHttpManager();
23792379
return;
2380-
}
2380+
}
2381+
23812382
if (channelString == null) {
23822383
callErrorCallbacks(channelsArray,
23832384
PubnubError.PNERROBJ_PARSING_ERROR);

0 commit comments

Comments
 (0)