As currently implemented in dev, the chat refresh interval can run forever if the timing is right. Specifically, it happens if clearTimeout is called before the next timeout is set.
This should be modified to instead use a flag system to ensure the next round does not start in this case. Additionally, it should probably be moved to a more generic method, such as in this link
As currently implemented in
dev
, the chat refresh interval can run forever if the timing is right. Specifically, it happens ifclearTimeout
is called before the next timeout is set.This should be modified to instead use a flag system to ensure the next round does not start in this case. Additionally, it should probably be moved to a more generic method, such as in this link