session creation fixed

This commit is contained in:
C
2022-07-20 12:30:46 +05:00
parent 36ff1cbd7b
commit 81be0c6db8
6 changed files with 139 additions and 70 deletions
+8
View File
@@ -43,6 +43,14 @@ public:
return false;
}
bool existsOwnerId(uint32_t id)
{
for (auto& s : sessions)
if (s.getOwnerId() == id)
return true;
return false;
}
size_t getCount() { return sessions.size(); }
void setlimit(uint32_t limit) { this->limit = limit; }
bool isLimitReached()