File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed
src/main/java/org/java_websocket/client Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff 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>
You can’t perform that action at this time.
0 commit comments