Skip to content

Commit abb51a6

Browse files
authored
Fixed typo in WebSocketClient.reset's error message
1 parent 433935a commit abb51a6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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
private void reset() {
320320
Thread current = Thread.currentThread();
321321
if (current == writeThread || current == connectReadThread) {
322-
throw new IllegalStateException("You cannot initialize a reconnect out of the websocket thread. Use reconnect in another thread to insure a successful cleanup.");
322+
throw new IllegalStateException("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)