Skip to content

Commit 0e31ddd

Browse files
authored
Merge pull request TooTallNate#1028 from alphaho/patch-1
Fixed typo in WebSocketClient.reset's error message
2 parents 433935a + abb51a6 commit 0e31ddd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/main/java/org/java_websocket/client/WebSocketClient.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ public boolean reconnectBlocking() throws InterruptedException{
319319
privatevoidreset(){
320320
Threadcurrent = Thread.currentThread();
321321
if (current == writeThread || current == connectReadThread){
322-
thrownewIllegalStateException("You cannot initialize a reconnect out of the websocket thread. Use reconnect in another thread to insure a successful cleanup.");
322+
thrownewIllegalStateException("You cannot initialize a reconnect out of the websocket thread. Use reconnect in another thread to ensure a successful cleanup.");
323323
}
324324
try{
325325
closeBlocking();

0 commit comments

Comments
(0)