Skip to content

Commit 4494970

Browse files
committed
fix channelGroup resubscription and timeouts
1 parent 9038cc6 commit 4494970

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2377,9 +2377,13 @@ public void handleTimeout(HttpRequest hreq) {
23772377
: "0";
23782378
log.verbose("Timeout Timetoken : " + timeoutTimetoken);
23792379
channelSubscriptions.invokeDisconnectCallbackOnItems(timeoutTimetoken);
2380+
channelGroupSubscriptions.invokeDisconnectCallbackOnItems(timeoutTimetoken);
23802381
channelSubscriptions.invokeErrorCallbackOnItems(
23812382
PubnubError.getErrorObject(PubnubError.PNERROBJ_TIMEOUT, 1)
23822383
);
2384+
channelGroupSubscriptions.invokeErrorCallbackOnItems(
2385+
PubnubError.getErrorObject(PubnubError.PNERROBJ_TIMEOUT, 1)
2386+
);
23832387
// disconnectAndResubscribe();
23842388

23852389
// channelSubscriptions.removeAllItems();
@@ -2523,6 +2527,7 @@ public void disconnectAndResubscribeWithTimetoken(String timetoken,
25232527
PubnubError error) {
25242528
log.verbose("Received disconnectAndResubscribeWithTimetoken");
25252529
channelSubscriptions.invokeErrorCallbackOnItems(error);
2530+
channelGroupSubscriptions.invokeErrorCallbackOnItems(error);
25262531
resubscribe(timetoken);
25272532
}
25282533

@@ -2541,6 +2546,7 @@ public void disconnectAndResubscribe() {
25412546
public void disconnectAndResubscribe(PubnubError error) {
25422547
log.verbose("Received disconnectAndResubscribe");
25432548
channelSubscriptions.invokeErrorCallbackOnItems(error);
2549+
channelGroupSubscriptions.invokeErrorCallbackOnItems(error);
25442550
resubscribe();
25452551
}
25462552

0 commit comments

Comments
 (0)