Fixes #3

The thread was looking for a "false" value which would prevent it from
finishing. 0 is false, so it wouldn't complete.