fix incorrect agent type replacement

This commit is contained in:
Stephen Birarda 2013-04-08 18:23:01 -07:00
parent d462bff512
commit 2031d26ffe

View file

@ -230,7 +230,7 @@ void AgentList::pingAgents() {
*payload = PACKET_HEADER_PING;
for(std::vector<Agent>::iterator agent = agents.begin(); agent != agents.end(); agent++) {
if (agent->getType() == PACKET_HEADER_INTERFACE) {
if (agent->getType() == 'I') {
if (agent->getActiveSocket() != NULL) {
// we know which socket is good for this agent, send there
agentSocket.send(agent->getActiveSocket(), payload, 1);