simpleanswer.lastchange linked to spaceanswer.state.lastchange but expected ms instead.
made that one independent so simpleanswer should hopefully work again...
This commit is contained in:
parent
19f9bdd65d
commit
d2cc89dcef
|
@ -95,7 +95,8 @@ ippoll.on('doneState', function (state) {
|
|||
spaceanswer.state.open = state;
|
||||
spaceanswer.state.lastchange = Math.floor(new Date().getTime() / 1000);
|
||||
simpleanswer.state = state;
|
||||
simpleanswer.lastchange = spaceanswer.state.lastchange;
|
||||
// simpleanswer.lastchange = spaceanswer.state.lastchange;
|
||||
simpleanswer.lastchange = new Date().getTime();
|
||||
io.sockets.emit('sdata', {data: simpleanswer});
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue