Mods to improve stability for Zephora.
This commit is contained in:
1 parent
d13e3f9fb5
commit
03a3799888
7 files changed
+47
-30
No files matched your search
@@ -70,9 +70,11 @@ namespace core {
|
||||
|
||||
void TCPServer::removeFromSessionList(TCPSession *session) {
|
||||
std::vector<TCPSession *>::iterator cursor;
|
||||
lock.lock();
|
||||
for(cursor = sessions.begin(); cursor < sessions.end(); ++cursor)
|
||||
if(*cursor == session)
|
||||
sessions.erase(cursor);
|
||||
lock.unlock();
|
||||
}
|
||||
|
||||
void TCPServer::sessionErrorHandler(std::string errorString, std::stringstream &out) {
|
||||
|
||||
Reference in new issue
Block a user