mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-24 01:32:17 -05:00
close socket after failed stream open
This commit is contained in:
parent
3bf2876e09
commit
8132480b82
@ -396,8 +396,11 @@ public class XmppConnection implements Runnable {
|
|||||||
throw new SecurityException();
|
throw new SecurityException();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (startXmpp(localSocket))
|
if (startXmpp(localSocket)) {
|
||||||
break; // successfully connected to server that speaks xmpp
|
break; // successfully connected to server that speaks xmpp
|
||||||
|
} else {
|
||||||
|
localSocket.close();
|
||||||
|
}
|
||||||
} catch (final SecurityException e) {
|
} catch (final SecurityException e) {
|
||||||
throw e;
|
throw e;
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user