Skip to content

Commit 3691ec4

Browse files
author
Devendra
committed
exit run loop if die has been signalled to thread
1 parent 1384158 commit 3691ec4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎java/src1/com/pubnub/api/SubscribeWorker.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ void process(HttpRequest hreq) {
1616
HttpResponse hresp = null;
1717
int currentRetryAttempt = (hreq.isDar())?1:maxRetries;
1818
log.verbose("disconnectAndResubscribe is " + hreq.isDar());
19-
while (currentRetryAttempt <= maxRetries) {
19+
while (!_die && currentRetryAttempt <= maxRetries) {
2020
try {
2121
log.debug(hreq.getUrl());
2222
hresp = httpclient.fetch(hreq.getUrl(), hreq.getHeaders());

0 commit comments

Comments
 (0)