Fixed bug.

This commit is contained in:
Преподобный Ален
2022-09-18 02:37:13 +03:00
parent 233cdd579f
commit f0e690cf33
2 changed files with 6 additions and 2 deletions

View File

@@ -131,7 +131,9 @@ namespace Apostol {
auto &Context = m_Servers[index].Value(); auto &Context = m_Servers[index].Value();
Context.BTCKeys() = Keys; Context.BTCKeys() = Keys;
UpdateOAuth2(Context, m_OAuth2.Object()); if (Context.Status() == Context::csInitialization) {
UpdateOAuth2(Context, m_OAuth2.Object());
}
} }
} }
} }

View File

@@ -136,7 +136,9 @@ namespace Apostol {
auto &Context = m_Servers[index].Value(); auto &Context = m_Servers[index].Value();
Context.BTCKeys() = Keys; Context.BTCKeys() = Keys;
UpdateOAuth2(Context, m_OAuth2.Object()); if (Context.Status() == Context::csInitialization) {
UpdateOAuth2(Context, m_OAuth2.Object());
}
} }
} }
} }