mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-04-19 16:58: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);
|
self.channels.lock().expect("Poisoned!").push(send);
|
||||||
}
|
}
|
||||||
let timeout = after(duration);
|
|
||||||
loop {
|
loop {
|
||||||
|
let timeout = after(duration);
|
||||||
let r = select! {
|
let r = select! {
|
||||||
recv(reactions) -> r => { let (r, is_added) = r.unwrap(); h.handle_reaction(&*r, is_added) },
|
recv(reactions) -> r => { let (r, is_added) = r.unwrap(); h.handle_reaction(&*r, is_added) },
|
||||||
recv(timeout) -> _ => break,
|
recv(timeout) -> _ => break,
|
||||||
|
|
Loading…
Add table
Reference in a new issue