Fixed timeout int wraparound bug

If int is multiplied by 1000 and this value is greater than int.MAX_VALUE, a wraparound will occur resulting in a large negative number.  This will effectively make the timeout end immediately instead of lasting indefinitely.
Merge pull request #7 from fragnemesis/patch-1

Fixed timeout int wraparound bug