diff --git a/okhttp/src/main/java/okhttp3/internal/ws/RealWebSocket.java b/okhttp/src/main/java/okhttp3/internal/ws/RealWebSocket.java index 9ac84f0e298a..b05d9b77e540 100644 --- a/okhttp/src/main/java/okhttp3/internal/ws/RealWebSocket.java +++ b/okhttp/src/main/java/okhttp3/internal/ws/RealWebSocket.java @@ -495,12 +495,15 @@ boolean writeOneFrame() throws IOException { } private final class PingRunnable implements Runnable { + PingRunnable() { + } + @Override public void run() { writePingFrame(); } } - private void writePingFrame() { + void writePingFrame() { WebSocketWriter writer; synchronized (this) { if (failed) return;