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 ...@@ -183,7 +183,6 @@ public class ConnectionThread implements
private void onReady(XMPPTCPConnectionConfiguration.Builder builder) { private void onReady(XMPPTCPConnectionConfiguration.Builder builder) {
builder.setSecurityMode(tlsMode.getSecurityMode()); builder.setSecurityMode(tlsMode.getSecurityMode());
builder.setCompressionEnabled(compression); builder.setCompressionEnabled(compression);
builder.setResource("");
builder.setSendPresence(false); builder.setSendPresence(false);
{ {
...@@ -447,7 +446,7 @@ public class ConnectionThread implements ...@@ -447,7 +446,7 @@ public class ConnectionThread implements
*/ */
private void authorization(String password) { private void authorization(String password) {
try { try {
xmppConnection.login(login, password); xmppConnection.login(login, password, resource);
} catch (IOException | SmackException | XMPPException e) { } catch (IOException | SmackException | XMPPException e) {
e.printStackTrace(); e.printStackTrace();
connectionClosedOnError(e); 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