Skip to content

Commit

Permalink
fix bad merge (square#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Benedict authored and GitHub Enterprise committed Apr 4, 2017
1 parent e4b3aa5 commit e975200
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 0 additions & 2 deletions okhttp/src/main/java/okhttp3/OkHttpClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@ public void apply(ConnectionSpec tlsConfiguration, SSLSocket sslSocket, boolean
final int readTimeout;
final int writeTimeout;
final int pingInterval;
final EventListener eventListener;
final EventListener.Factory eventListenerFactory;

public OkHttpClient() {
Expand All @@ -235,7 +234,6 @@ public OkHttpClient() {
this.cache = builder.cache;
this.internalCache = builder.internalCache;
this.socketFactory = builder.socketFactory;
this.eventListener = builder.eventListener;
this.eventListenerFactory = builder.eventListenerFactory;

boolean isTLS = false;
Expand Down
6 changes: 1 addition & 5 deletions okhttp/src/main/java/okhttp3/RealCall.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,7 @@ final class RealCall implements Call {
this.originalRequest = originalRequest;
this.forWebSocket = forWebSocket;
this.retryAndFollowUpInterceptor = new RetryAndFollowUpInterceptor(client, forWebSocket);
if (null == eventListenerFactory) {
this.eventListener = client.eventListener();
} else {
this.eventListener = eventListenerFactory.create(this);
}
this.eventListener = eventListenerFactory.create(this);
}

@Override public Request request() {
Expand Down

0 comments on commit e975200

Please sign in to comment.