Reset Counter example
Hello,
while setting up a new environment, i found the bug inside the Visual Studio template, that does not let you reset the counter.
Here:
void TestBugService::AppServiceApps(istd::list<AppServiceApp> * appList)
{
appList->push_back(new AppServiceApp("company-testbug"));
appList->push_back(new AppServiceApp("company-testbugadmin"));
}
{
appList->push_back(new AppServiceApp("company-testbug"));
appList->push_back(new AppServiceApp("company-testbugadmin"));
}
And here:
bool TestBugSession::AppWebsocketConnectComplete(class json_io & msg, word info)
{
const char * appobj = msg.get_string(info, "appobj");
if (appobj && !strcmp(appobj, sip)) admin = true;
if (!strcmp(app, "company-testbugAdmin")) adminApp = true;
return true;
}
{
const char * appobj = msg.get_string(info, "appobj");
if (appobj && !strcmp(appobj, sip)) admin = true;
if (!strcmp(app, "company-testbugAdmin")) adminApp = true;
return true;
}
... a capitalized "A" inside the plugin name causes the bug, the string comparison does not match.