summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Wilson <jwilson@squareup.com>2024-04-04 07:40:21 -0400
committerGitHub <noreply@github.com>2024-04-04 07:40:21 -0400
commit5b27ba7e82d5e6995d46153ca9f924b9c442e9fa (patch)
tree19e7a0828b4d5725e2b55b798d5918ab11a3febf
parentc9ba5d732b23ae25d7603b7b19afbca3a75e9fd6 (diff)
downloadokhttp4-5b27ba7e82d5e6995d46153ca9f924b9c442e9fa.tar.gz
Clarify a comment on shutting down the dispatcher (#8328)
-rw-r--r--samples/guide/src/main/java/okhttp3/recipes/WebSocketEcho.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/guide/src/main/java/okhttp3/recipes/WebSocketEcho.java b/samples/guide/src/main/java/okhttp3/recipes/WebSocketEcho.java
index f0407db87..8aa19a2b3 100644
--- a/samples/guide/src/main/java/okhttp3/recipes/WebSocketEcho.java
+++ b/samples/guide/src/main/java/okhttp3/recipes/WebSocketEcho.java
@@ -19,7 +19,7 @@ public final class WebSocketEcho extends WebSocketListener {
.build();
client.newWebSocket(request, this);
- // Trigger shutdown of the dispatcher's executor so this process can exit cleanly.
+ // Trigger shutdown of the dispatcher's executor so this process exits immediately.
client.dispatcher().executorService().shutdown();
}