Minor fix

This commit is contained in:
Stephen Seo 2019-08-27 17:53:18 +09:00
parent 1382cc6b7c
commit 8883d84b9b

View file

@ -313,7 +313,8 @@ void UDPC_update(void *ctx) {
if(iter->second.timer >= (iter->second.flags.test(1) if(iter->second.timer >= (iter->second.flags.test(1)
? UDPC::GOOD_MODE_SEND_RATE ? UDPC::GOOD_MODE_SEND_RATE
: UDPC::BAD_MODE_SEND_RATE)) { : UDPC::BAD_MODE_SEND_RATE)) {
iter->second.timer = std::chrono::steady_clock::duration::zero(); iter->second.timer -= (iter->second.flags.test(1)
? UDPC::GOOD_MODE_SEND_RATE : UDPC::BAD_MODE_SEND_RATE);
iter->second.flags.set(0); iter->second.flags.set(0);
} }
} }