MCPcopy Create free account
hub / github.com/amule-project/amule / AddDirectCallbackClient

Method AddDirectCallbackClient

src/ClientList.cpp:1067–1080  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1065}
1066
1067void 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
1082void CClientList::ProcessDirectCallbackList()
1083{

Callers 1

TryToConnectMethod · 0.80

Calls 5

HasBeenDeletedMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
GetClientMethod · 0.45

Tested by

no test coverage detected