Minor fix
This commit is contained in:
parent
1382cc6b7c
commit
8883d84b9b
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue