pmrep: minor coding simplifications
pmrep: minor coding simplifications

Logic tweak when reaching end of samples requested.  Reorder the
connect() method location so all pmrep methods are roughly in the
order they are called or used.

wuliming/pcp,wuliming/pcp,adfernandes/pcp,adfernandes/pcp,adfernandes/pcp,wuliming/pcp,adfernandes/pcp,wuliming/pcp,wuliming/pcp,wuliming/pcp,wuliming/pcp,adfernandes/pcp,wuliming/pcp,adfernandes/pcp,adfernandes/pcp,adfernandes/pcp