delete it->GetData();
}
- for(EList::compatibility_iterator it = m_eventWorkers.GetFirst(); it ; it->GetNext()) {
- delete it->GetData();
+ for(EList::compatibility_iterator it2 = m_eventWorkers.GetFirst(); it2 ; it2->GetNext()) {
+ delete it2->GetData();
}
m_threadWorkers.Clear();
break;
}
}
- for(EList::compatibility_iterator it = m_eventWorkers.GetFirst(); it ; it = it->GetNext())
+ for(EList::compatibility_iterator it2 = m_eventWorkers.GetFirst(); it2 ; it2 = it2->GetNext())
{
- if (it->GetData() == pEvent.m_sender)
+ if (it2->GetData() == pEvent.m_sender)
{
wxLogVerbose(wxT("Deleting event worker (%d left)"),m_eventWorkers.GetCount());
- delete it->GetData();
- m_eventWorkers.DeleteNode(it);
+ delete it2->GetData();
+ m_eventWorkers.DeleteNode(it2);
if (!pEvent.m_workerFailed)
m_eventWorkersDone++;
else
if (signature[0] == 0xCE)
{
- LogWorker(m_peer,_("This server does not support test2 from GUI client"));
+ LogWorker(m_peer,_("This server does not support test2 from GUI client"),LOG_ERROR);
e.m_workerFailed = true;
e.m_exit = true;
return 0;
unsigned char type = m_signature[0];
if (type == 0xCE)
{
- LogWorker(m_peer,_("This server does not support test2 from GUI client"));
+ LogWorker(m_peer,_("This server does not support test2 from GUI client"),LOG_ERROR);
m_written = -1; //wxSOCKET_LOST will interpret this as failure
m_socket->Close();
}