mirror of
https://github.com/oxen-io/session-android.git
synced 2025-04-02 17:02:17 +00:00
parent
6280ef4ab8
commit
8a2caeef3d
@ -188,7 +188,13 @@ public class WebSocketConnection {
|
|||||||
|
|
||||||
while (newSocket()) {
|
while (newSocket()) {
|
||||||
try {
|
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) {
|
if (response.code() == 101) {
|
||||||
onConnected();
|
onConnected();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user