in client/src/js/StateManager.ts [72:78]
private changeCurrentState(state: State) {
if (this.currentState !== state) {
this.currentState = state;
this.endTime =
state.getMaximumDurationInSeconds() != -1 ? Date.now() / 1000 + state.getMaximumDurationInSeconds() : -1;
}
}