Changed variable name to last_packet_sent
minimal change for running server