aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorFlorian Rinke <develop@torui.de>2021-10-11 20:21:24 +0200
committerFlorian Rinke <develop@torui.de>2021-10-11 20:21:24 +0200
commit035ea5d24739afd1d137b4bbf3a2575a12f53758 (patch)
tree094c44dc8a2348d25e580467602c72f0fa6b22f9 /src/main
parentc86ec97e375edfef10856c156c08050115f17765 (diff)
downloadCOFL-035ea5d24739afd1d137b4bbf3a2575a12f53758.tar.gz
COFL-035ea5d24739afd1d137b4bbf3a2575a12f53758.tar.bz2
COFL-035ea5d24739afd1d137b4bbf3a2575a12f53758.zip
added Timeout
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/de/torui/coflsky/websocket/WSClient.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/de/torui/coflsky/websocket/WSClient.java b/src/main/java/de/torui/coflsky/websocket/WSClient.java
index 3cb2de2..8adce9a 100644
--- a/src/main/java/de/torui/coflsky/websocket/WSClient.java
+++ b/src/main/java/de/torui/coflsky/websocket/WSClient.java
@@ -68,7 +68,7 @@ public class WSClient extends WebSocketAdapter {
// by calling WebSocketFactory.setVerifyHostname(false).
factory.setVerifyHostname(false);
factory.*/
-
+ factory.setConnectionTimeout(10*1000);
this.socket = factory.createSocket(uri);
this.socket.addListener(this);
this.socket.connect();