parent
6280ef4ab8
commit
8a2caeef3d
1 changed files with 7 additions and 1 deletions
|
@ -188,7 +188,13 @@ public class WebSocketConnection {
|
|||
|
||||
while (newSocket()) {
|
||||
try {
|
||||
Response response = webSocket.connect(Client.this);
|
||||
Response response;
|
||||
|
||||
try {
|
||||
response = webSocket.connect(Client.this);
|
||||
} catch (IllegalStateException e) {
|
||||
throw new IOException(e);
|
||||
}
|
||||
|
||||
if (response.code() == 101) {
|
||||
onConnected();
|
||||
|
|
Loading…
Add table
Reference in a new issue