mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-04-18 16:28:55 +00:00
Reset the cooldown everytime there is an action
This commit is contained in:
parent
90be66b950
commit
15232b1598
1 changed files with 1 additions and 1 deletions
|
@ -60,8 +60,8 @@ impl ReactionWatcher {
|
|||
{
|
||||
self.channels.lock().expect("Poisoned!").push(send);
|
||||
}
|
||||
let timeout = after(duration);
|
||||
loop {
|
||||
let timeout = after(duration);
|
||||
let r = select! {
|
||||
recv(reactions) -> r => { let (r, is_added) = r.unwrap(); h.handle_reaction(&*r, is_added) },
|
||||
recv(timeout) -> _ => break,
|
||||
|
|
Loading…
Add table
Reference in a new issue