Revision d05148bb ml/util/rateLimiter.c

View differences:

ml/util/rateLimiter.c
45 45
   		gettimeofday(&now, NULL);
46 46
		bib_then = now;
47 47

  
48
		sendPacket(packet->udpSocket, packet->iov, 4, packet->socketaddr);
49

  
48 50
#ifdef RTX
49 51
		if (!(packet->priority & NO_RTX)) addPacketRTXqueue(packet);
52
		else destroyPacketContainer(packet);
53
#else
54
		destroyPacketContainer(packet);
50 55
#endif
51 56

  
52
		sendPacket(packet->udpSocket, packet->iov, 4, packet->socketaddr);
53 57
	}
54 58

  
55 59
	if (!isQueueEmpty()) planFreeSpaceInBucketEvent(getFirstPacketSize());
......
84 88
	}
85 89
#ifdef RTX
86 90
	if (!(priority & NO_RTX)) addPacketRTXqueue(newPacket);
91
	else destroyPacketContainer(newPacket);
92
#else
93
	destroyPacketContainer(newPacket);
87 94
#endif
88 95

  
89 96
	return sendPacket(udpSocket, iov, 4, socketaddr);

Also available in: Unified diff