mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-24 16:57:50 +00:00
parent
6280ef4ab8
commit
8a2caeef3d
@ -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…
x
Reference in New Issue
Block a user