Commit b2621156 authored by Grigory Fedorov's avatar Grigory Fedorov

ConnectionThread: account registration fixed network in main thread exception.

parent 99da92a7
...@@ -564,8 +564,13 @@ public class ConnectionThread implements ...@@ -564,8 +564,13 @@ 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);
runOnConnectionThread(new Runnable() {
@Override
public void run() {
authorization(password); authorization(password);
} }
});
}
/** /**
* Login. * Login.
......
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