| 1065 | } |
| 1066 | |
| 1067 | void CClientList::AddDirectCallbackClient(CUpDownClient* toAdd) |
| 1068 | { |
| 1069 | wxASSERT(toAdd->GetDirectCallbackTimeout() != 0); |
| 1070 | if (toAdd->HasBeenDeleted()) { |
| 1071 | return; |
| 1072 | } |
| 1073 | for (DirectCallbackList::const_iterator it = m_currentDirectCallbacks.begin(); it != m_currentDirectCallbacks.end(); ++it) { |
| 1074 | if (it->GetClient() == toAdd) { |
| 1075 | wxFAIL; // might happen very rarely on multiple connection tries, could be fixed in the client class, till then it's not much of a problem though |
| 1076 | return; |
| 1077 | } |
| 1078 | } |
| 1079 | m_currentDirectCallbacks.push_back(CCLIENTREF(toAdd, "CClientList::AddDirectCallbackClient")); |
| 1080 | } |
| 1081 | |
| 1082 | void CClientList::ProcessDirectCallbackList() |
| 1083 | { |
no test coverage detected