Commit 1d224a56 authored by Grigory Fedorov's avatar Grigory Fedorov

Resource by server generation disabled.

parent 783be6ef
......@@ -183,7 +183,6 @@ public class ConnectionThread implements
private void onReady(XMPPTCPConnectionConfiguration.Builder builder) {
builder.setSecurityMode(tlsMode.getSecurityMode());
builder.setCompressionEnabled(compression);
builder.setResource("");
builder.setSendPresence(false);
{
......@@ -447,7 +446,7 @@ public class ConnectionThread implements
*/
private void authorization(String password) {
try {
xmppConnection.login(login, password);
xmppConnection.login(login, password, resource);
} catch (IOException | SmackException | XMPPException e) {
e.printStackTrace();
connectionClosedOnError(e);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment