check timer only when connected
reset last_received timer immediately after connect
small optimization