Permalink
Browse files

init again after change to default conn timeout or request callback i…

…nterval
  • Loading branch information...
1 parent 5636989 commit 3075246a667fb9672b9fdf48b69965f4eb9476e6 @devendram devendram committed Dec 5, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 java/3.3/src/com/pubnub/api/Pubnub.java
@@ -93,6 +93,7 @@ public Request request(){
*/
public void setWebRequestCallbackInterval(int interval){
this.PUBNUB_WEBREQUEST_CALLBACK_INTERVAL = interval;
+ this.init(this.PUBLISH_KEY, this.SUBSCRIBE_KEY, this.SECRET_KEY, this.CIPHER_KEY, this.SSL);
}
/**
* Sets number of retries to be made for network availability check
@@ -120,6 +121,7 @@ public void setFastWebRequestTimeout(int timeout) {
*/
public void setConnectionTimeout(int timeout) {
this.PUBNUB_DEFAULT_CONN_TIMEOUT = timeout;
+ this.init(this.PUBLISH_KEY, this.SUBSCRIBE_KEY, this.SECRET_KEY, this.CIPHER_KEY, this.SSL);
}

0 comments on commit 3075246

Please sign in to comment.