Skip to content

Commit 7961e87

Browse files
authored
formatted
1 parent ff6665e commit 7961e87

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

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

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -282,19 +282,19 @@ public boolean connectBlocking() throws InterruptedException {
282282
return engine.isOpen();
283283
}
284284

285-
/**
286-
* Same as <code>connect</code> but blocks with a timeout until the websocket connected or failed to do so.<br>
287-
* @param timeout
288-
* The connect timeout
289-
* @param timeUnit
290-
* The timeout time unit
291-
* @return Returns whether it succeeded or not.
292-
* @throws InterruptedException Thrown when the threads get interrupted
293-
*/
294-
public boolean connectBlocking(long timeout, TimeUnit timeUnit) throws InterruptedException {
295-
connect();
296-
return connectLatch.await(timeout, timeUnit) && engine.isOpen();
297-
}
285+
/**
286+
* Same as <code>connect</code> but blocks with a timeout until the websocket connected or failed to do so.<br>
287+
* @param timeout
288+
* The connect timeout
289+
* @param timeUnit
290+
* The timeout time unit
291+
* @return Returns whether it succeeded or not.
292+
* @throws InterruptedException Thrown when the threads get interrupted
293+
*/
294+
public boolean connectBlocking(long timeout, TimeUnit timeUnit) throws InterruptedException {
295+
connect();
296+
return connectLatch.await(timeout, timeUnit) && engine.isOpen();
297+
}
298298

299299
/**
300300
* Initiates the websocket close handshake. This method does not block<br>

0 commit comments

Comments
 (0)