Fixed an integer overflow that caused the token to always be refreshed
Merge pull request #443 from lnewson/master

Fixed an integer overflow that caused the token to be refreshed too often