mirror of
https://github.com/moparisthebest/Conversations
synced 2024-12-25 08:58:55 -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();
|
||||
}
|
||||
}
|
||||
if (startXmpp(localSocket))
|
||||
if (startXmpp(localSocket)) {
|
||||
break; // successfully connected to server that speaks xmpp
|
||||
} else {
|
||||
localSocket.close();
|
||||
}
|
||||
} catch (final SecurityException e) {
|
||||
throw e;
|
||||
} catch (InterruptedException e) {
|
||||
|
Loading…
Reference in New Issue
Block a user