Committing updates.
This commit is contained in:
@@ -225,7 +225,7 @@ namespace Apostol {
|
||||
//--------------------------------------------------------------------------------------------------------------
|
||||
|
||||
CWebSocketClient *CWebSocketModule::GetWebSocketClient(CClientContext &Context) {
|
||||
auto pClient = Context.ClientManager().Add(&Context, CLocation(Context.URL().Origin() + "/session/" + Context.Session()));
|
||||
auto pClient = Context.ClientManager().Add(&Context, CLocation(Context.URL().Origin() + "/module/" + Context.Session()));
|
||||
|
||||
pClient->Session() = Context.Session();
|
||||
|
||||
@@ -662,14 +662,12 @@ namespace Apostol {
|
||||
for (int i = 0; i < m_Servers.Count(); i++) {
|
||||
auto &Context = m_Servers[i].Value();
|
||||
|
||||
if ((Now >= Context.CheckDate())) {
|
||||
if ((Now >= Context.CheckDate()) && (Context.Status() >= Context::csInitialized)) {
|
||||
Context.SetCheckDate(Now + (CDateTime) 30 / SecsPerDay); // 30 sec
|
||||
if (Context.Status() == Context::csInitialized) {
|
||||
Context.SetStatus(Context::csAuthorization);
|
||||
Context.SetStatus(Context::csAuthorization);
|
||||
|
||||
CheckProviders(Now, Context);
|
||||
FetchProviders(Now, Context);
|
||||
}
|
||||
CheckProviders(Now, Context);
|
||||
FetchProviders(Now, Context);
|
||||
}
|
||||
|
||||
if (Context.Status() == Context::csAuthorized) {
|
||||
|
||||
Reference in New Issue
Block a user