Skip to content

Commit 5e62a31

Browse files
author
Devendra
committed
added break if thread asked to die, so that back from dar processing not done
1 parent fd2713e commit 5e62a31

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ void process(HttpRequest hreq) {
2828
}
2929
} catch (SocketTimeoutException e) {
3030
log.verbose("No Traffic , Read Timeout Exception in Fetch : " + e.toString());
31+
if (_die) {
32+
log.verbose("Asked to Die, Don't do back from DAR processing");
33+
break;
34+
}
3135
if (hreq.isDar()) {
3236
hreq.getResponseHandler().handleBackFromDar(hreq);
3337
return;
@@ -65,4 +69,4 @@ void process(HttpRequest hreq) {
6569
public void shutdown() {
6670
if (httpclient != null) httpclient.shutdown();
6771
}
68-
}
72+
}

0 commit comments

Comments
 (0)