When a change is processed, a timeout is set to continue monitoring it. Unfortunately, when a change is sent again to the program, a new timeout is set, thus having two "pseudothreads" monitoring the same change.
This patch checks if there is already a timeout for a change, and avoids creating a new timeout in that case, because the current one will already manage new changes.
When a change is processed, a timeout is set to continue monitoring it. Unfortunately, when a change is sent again to the program, a new timeout is set, thus having two "pseudothreads" monitoring the same change.
This patch checks if there is already a timeout for a change, and avoids creating a new timeout in that case, because the current one will already manage new changes.