Closed emcniece closed 8 years ago
Merge conflicts resolved - ready for testing and merge. https://rawgit.com/emcniece/OakTerm/fix/i5-devinfo-after-auth/index.html
Merge conflicts resolved - ready for testing and merge. https://rawgit.com/emcniece/OakTerm/fix/i5-devinfo-after-auth/index.html
Discovered a bug where the do_login()
promise chain would halt at the start_pollers
promise and wouldn't populate the devices right away. This was fixed by adding a resolve()
to the start_pollers
function (d'oh)
Ready for testing again.
The two
setInterval
pollers are now available within a promise, and are subsequently initiated in thedo_login()
promise chain. This ensures that polling only starts once authentication has passed.When testing this initially the
update_devinfo
poller was doubling up, suggesting that thesetInterval
had been processed twice. To avoid this, a newpollers[]
array was added, and thestart_pollers()
function checks to make sure each poller is only added once.Reference: https://github.com/kh90909/OakTerm/issues/5