Update lib/connect-thumbs.js

Fixed the resume logic