+ // check for any non-running connection threads that we can delete\r
+ for(std::vector<PThread::Thread *>::iterator i=m_connectionthreads.begin(); i!=m_connectionthreads.end(); )\r
+ {\r
+ if((*i)->IsRunning()==false)\r
+ {\r
+ delete (*i);\r
+ i=m_connectionthreads.erase(i);\r
+ }\r
+ if(i!=m_connectionthreads.end())\r
+ {\r
+ i++;\r
+ }\r
+ }\r
+\r
+ //}while(!ZThread::Thread::interrupted() && m_listensockets.size()>0);\r
+ }while(!IsCancelled() && m_listensockets.size()>0);\r