diff options
Diffstat (limited to 'src/net/packetlimiter.cpp')
-rw-r--r-- | src/net/packetlimiter.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/net/packetlimiter.cpp b/src/net/packetlimiter.cpp index 8dc8211b2..ba87badc7 100644 --- a/src/net/packetlimiter.cpp +++ b/src/net/packetlimiter.cpp @@ -275,11 +275,8 @@ bool PacketLimiter::checkPackets(const PacketTypeT type) { return false; } - else - { -// instance()->mPacketLimits[type].cnt ++; - return true; - } +// instance()->mPacketLimits[type].cnt ++; + return true; } // instance()->mPacketLimits[type].lastTime = time; // instance()->mPacketLimits[type].cnt = 1; @@ -317,11 +314,8 @@ bool PacketLimiter::limitPackets(const PacketTypeT type) { return false; } - else - { - pack.cnt ++; - return true; - } + pack.cnt ++; + return true; } pack.lastTime = time; pack.cnt = 1; |