Logging when frames restart. I am still screwing up.

This commit is contained in:
mmcw-dev 2017-10-20 20:25:45 -04:00
parent 243f45c836
commit ca8f6b2be9
1 changed files with 2 additions and 0 deletions

View File

@ -292,11 +292,13 @@ intval.frame = function (dir = null, time = null) {
if (dir) {
log.info('frame', { pausing : time - intval._state.frame.open })
setTimeout( () => {
log.info('frame', 'restarting')
intval._state.frame.paused = false
intval._startFwd()
}, time - intval._state.frame.open)
} else {
setTimeout( () => {
log.info('frame', 'restarting')
intval._state.frame.paused = false
intval._startBwd()
}, time - intval._state.frame.open)