*
* Specified in seconds
*/
-const PHASE_IDLE_TIMEOUT = 10;
+const PHASE_IDLE_TIMEOUT = 30;
class Empathy extends Game {
constructor(id) {
if (this.answering_idle_timer) {
clearTimeout(this.answering_idle_timer);
+ this.ansering_idle_timer = 0;
}
if (! this.state.answering_idle) {
this.answering_idle_timer = setTimeout(() => {
- this.state_answering_idle = true;
+ this.state.answering_idle = true;
this.broadcast_event_object('answering-idle', true);
}, PHASE_IDLE_TIMEOUT * 1000);
}