Commit b2621156 authored by Grigory Fedorov's avatar Grigory Fedorov

ConnectionThread: account registration fixed network in main thread exception.

parent 99da92a7
...@@ -564,7 +564,12 @@ public class ConnectionThread implements ...@@ -564,7 +564,12 @@ public class ConnectionThread implements
private void onAccountRegistered(final String password) { private void onAccountRegistered(final String password) {
LogManager.i(this, "Account registered"); LogManager.i(this, "Account registered");
connectionItem.onAccountRegistered(this); connectionItem.onAccountRegistered(this);
authorization(password); runOnConnectionThread(new Runnable() {
@Override
public void run() {
authorization(password);
}
});
} }
/** /**
......
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